Auto login for SSH

Look in your ~/.ssh directory. There should be two files, id_rsa and id_rsa.pub. If not, create them using ssh-keygen -t rsa.

Append your local id_rsa.pub to the remote host's ~/.ssh/authorized_keys.

The file mode of ~/.ssh/authorized_keys must be 644. You can assure this with chmod 644 ~/.ssh/authorized_keys

For this to work, you might have to change your /etc/sshd_config and add the following lines:

   * RSAAuthentication yes
   * RSAAuthentication yes

Done!