Sign up ×  I need to login to a user that I've created on a
remote host running Ubuntu. I can't use an ssh key because the
ssh login will happen from a bash script ran within a server
that I won't have access to (think continuous integration server
like Bamboo).  I understand this isn't an ideal practice, but I
want to either set the remote host to not ask for the password
or be able to login with something like ssh --passsword foobar
user@host, kind of like MySQL allows you to do for logins.  I'm
not finding this in man ssh and I'm open to any alternatives to
getting around this issue.  share|improve this question possible
duplicate of Shell Script for logging into a ssh server – 
Gilles May 15 '12 at 23:40  4 Answers 4  On Ubuntu, install the
sshpass package, then use it like this:  sshpass -p
'YourPassword' ssh user@host  sshpass also supports passing the
keyboard-interactive password from a file or an environment
variable, which might be a more appropriate option in any
situation where security is relevan