- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- SCP -B not working
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 05:18 AM
тАО01-24-2006 05:18 AM
SCP -B not working
I'm trying to run a SCP in a command procedure.
The command works great interactively.
When I try to run in the command procedure, I add the -B qualifier to the command line. The error message appears to be related to the -b qualifier. See below.
----------------------------------
$ SCP2 -B m900oper.txt maxcim@sapcibwpo:
tcpip$ssh_scp2.exe: FATAL: -b requires an argument greater than zero.
%TCPIP-F-SSH_FATAL, non-specific fatal error condition
----------------------------------
Please help.
- Tags:
- scp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 05:55 AM
тАО01-24-2006 05:55 AM
Re: SCP -B not working
$ SCP "-B" ...
because all quals are lowercased to be most compatible to unix, so to have an uppercase qualifier you need quotes.
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 06:00 AM
тАО01-24-2006 06:00 AM
Re: SCP -B not working
If I need the quoates, any thoughts on this error?
----------------------------
$ SCP2 "-B" m900oper.txt maxcim@sapcibwpo:
tcpip$ssh_scp2.exe: warning: ssh2 client failed to authenticate. (or you have to
o old ssh2 installed, check with ssh2 "-V")
warning: Authentication failed.
Disconnected; protocol error (Too many authentication failures for maxcim).
tcpip$ssh_scp2.exe: warning: child process (/sys$system/tcpip$ssh_ssh2) exited w
ith code 27.
%TCPIP-E-SSH_FC_ERROR, undetermined error within sshfilecopy
---------------------------
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 07:41 PM
тАО01-24-2006 07:41 PM
Re: SCP -B not working
Wim
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-24-2006 10:20 PM
тАО01-24-2006 10:20 PM
Re: SCP -B not working
To begin with:
Welcome to the VMS forum!
if the target system is some form of Unix/Linux, then the username@nodename construct must also be in bouble quotes.
hth,
Proost.
Have one on me.
jpe
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 12:25 AM
тАО01-25-2006 12:25 AM
Re: SCP -B not working
This may be a stupid question. Is there some configuration setting that needs to be set to allow file copies via batch mode? If so, can you provide an example of the command to set batch mode 'On'?
Thanks again, for all the help!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 02:04 AM
тАО01-25-2006 02:04 AM
Re: SCP -B not working
Without looking at the configuration files for both the client and server we don't know what the authentication methods were (it could have been a null set).
Possible authentication methods are:
-publickey (without a passphrase, or with a passphrase and the passphrase loaded in a copy of SSH Agent that is currently running)
-Host Based
Both of these methods require some configuration by putting the right information is specific files and putting public key files on the remote system. Consult the documentation for the details.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО01-25-2006 03:04 AM
тАО01-25-2006 03:04 AM
Re: SCP -B not working
I've recently answered a similar question for SFTP and provided setup instructions. Please see:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=985928
Volker.