ssh without a password
January 4th, 2007 by Lawrence David
if you often login to a remote terminal using ssh, you’ll probably tire of typing in your password over and over again.
if you’re feeling lucky and reckless, you can enable ssh without passwords.
here’s how:
[@local]$ ssh-keygen -t rsa -f ~/.ssh/id_rsa
[@local]$ scp ~/.ssh/id_rsa.pub user@remote.server:~/.ssh/
log onto the remote server (will still have to enter password)
[@remote]$ cat id_rsa.pub >> authorized_keys2
[@remote]$ rm id_rsa.pub
[@remote]$ chmod 640 authorized_keys2
log off the remote server; the next time you try and login, you won’t need a password!
[thanks to mbonati for the refresher.]