I'm using Ubuntu 11.10 and ssh
for connecting to many servers daily, so I put their parameters in the .ssh/config
file like this:
Host HomeUser netmoonPort 22HostName test.com
Is there a way to put passwords for each connection in this file, so that, when the server asks for the password, the terminal enters its password and sends it to the server?
I need this because sometimes I'm away from the PC and when I get back, type a password, and press Enter the terminal says CONNECTION CLOSED
.
P.S. I don't want to use a public/private key pair.