Feed on

ssh without a password

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.]

Bookmark and Share

if that was helpful ...

check out the other tips and tricks i've compiled on these pages. you might learn something else interesting!

Did I get this wrong? Let me know!

Trackback URI | Comments RSS

More blogs about http://desk.stinkpot.org:8080/tricks.