Thursday, 12 January 2012

Password-less SSH login

Great tutorial on how to set-up password-less SSH verification on OS X / Unix:

http://smbjorklund.no/ssh-login-without-password-using-os-x

What it basically comes down to is this:

From Terminal, run: ssh-keygen -t rsa

Then copy ~/.ssh/authorized_keys to the server:

If it already exists: cat ~/.ssh/id_rsa.pub | ssh username@example.com "cat - >> ~/.ssh/authorized_keys;

If it doesn't: scp ~/.ssh/id_rsa.pub username@example.com:~/.ssh/authorized_keys

No comments:

Post a Comment