Using sshpass to skip entering passwords for SSH


If your server does not allow key based login, you might need to enter password each time you want to ssh into.

ssh does not allow entering password into the command line.

There is a nifty tool to allow exactly that sshpass

$ sudo apt-get install sshpass
$ sshpass -p your_password ssh user@hostname

On Mac

brew install hudochenkov/sshpass/sshpass