OpenSSH-clients SFTP

From Michael's Information Zone
Revision as of 11:35, 27 June 2017 by Michael.mast (talk | contribs) (Created page with "==Without Keys== Raymond James doesn't like to use public keys for SFTP (they also don't like limiting access to specific IPs and or using strong passwords, but I digress).<br...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Without Keys

Raymond James doesn't like to use public keys for SFTP (they also don't like limiting access to specific IPs and or using strong passwords, but I digress).
If you need to automate getting files via SFTP using the OpenSSH client, you have to disable batch mode so you can use batch mode with sshpass

sshpass -p<password> sftp -oBatchMode=no -b batchfile username@serveraddress