Difference between revisions of "OpenSSH-clients SFTP"

From Michael's Information Zone
Jump to navigation Jump to search
(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...")
 
(No difference)

Latest revision as of 12:35, 27 June 2017

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