Sshpass is a tool for non-interactivly performing password authentication with SSH's so called "interactive keyboard password authentication". Most user should use SSH's more secure public key authentiaction instead.
Follow Non-interactive ssh password auth
Rate This ProjectLogin To Rate This Project
Thanks! it worked on my stand alone micro controller with no monitor and keyboard... it is able to send files to our primitive SFTP server without key files.
not supplying password with pem file (ssh -i) sshpass -p Password ssh -i key-file.pem user@host
Works great. Our corporate server does not allow us to use keypair for SSH, this is a life-saver. Thanks!
SF says I have to say something, so this is it: Works great!
Compiled this using Cygwin/GCC and had no problems. Used it with Cygwin/Bash to automate a task that would have taken a couple hours. Thank you for teh codez! :D