Passwordless Logins with SSH

SSH allows you to login remote hosts without entering your password every time, using Public key authentication.

First you need to generate key,

$ ssh-keygen -t rsa

Save the key in the default file (~/.ssh/id_rsa) and do not use a passphrase. This will create a file ~/.ssh/

You need to copy your public key to all machines that you need to login with this scheme.

$ scp .ssh/ user@host:.

Finally append your public key to the available keys,

$ cat >> .ssh/authorized_keys