- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: SFTP in batch 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
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
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
04-10-2012 11:56 AM
04-10-2012 11:56 AM
I can use SFTP interactively just fine to connect to a client's FTP site. To do this I created a user on my system with the same name as the FTP user on the client's server, then when logged in as the new user, I use the following command.
$ SFTP ftp.clientsaddress.com
It prompts me for a password and I login just fine. To do this in batch mode, I created a text file pwd.txt with the password in it. Then logged in as that same user, I issue the following command:
$ SFTP "-B" pwd.txt ftp.clientsaddress.com
warning: Authentication failed.
Disconnected; no more authentication methods available (No further authentication methods available.).
FATAL: ssh2 client failed to authenticate. (or you have too old ssh2 installed, check with ssh2 "-V")
I have checked the ssh2 version:
$ ssh2 "-V"
alpha2$dke0:[sys0.syscommon.][sysexe]tcpip$ssh_ssh2.exe: SSH Secure Shell OpenVMS (V5.5) 3.2.0 on AlphaServer DS25 - VMS V8.3
Other version info:
HP TCP/IP Services for OpenVMS Alpha Version V5.6
on an AlphaServer DS25 running OpenVMS V8.3
Any help would be appreciated.
Solved! Go to Solution.
- Tags:
- sftp
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2012 12:43 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2012 12:52 PM
04-10-2012 12:52 PM
Re: SFTP in batch not working
Using sftp to connect to an ftp site won't work. I'll assume that a connection to an sftp server was intended.
The file specification after the -B isn't a file containing a password, it's a file containing sftp transfer commands.
(And quoting from the HP documentation for this sftp stuff: "SYS$INPUT, SYS$OUTPUT, and SYS$ERROR may not work as you expect." They definitely don't.)
If you want to use sftp in batch, then you will want to set up the certificate-based login path. Some details on setting up the sftp and ssh and the rest of the certificate-based operations are here and here and here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2012 01:23 PM
04-10-2012 01:23 PM
Re: SFTP in batch not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2012 02:13 PM
04-10-2012 02:13 PM
Re: SFTP in batch not working
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-10-2012 02:32 PM
04-10-2012 02:32 PM
Re: SFTP in batch not working
One of the documents that's linked is an illustrated description of how to set up a certificate-based login, and it's specifically tailored for Microsoft Windows users working with PuTTY terminal emulator. It also covers OS X as a client, which uses OpenSSL. (OpenVMS also uses an ancient and somewhat wonky port of OpenSSL.)