Passwordless SSH Login


Picture:Clock Published on November 2nd, 2008 in Linux, Mac OS X, Other

Note: This will only work on UNIX hosts.

1. Create your private/public key pair, which will create a private key in ~/.ssh/id_rsa a public one in ~/.ssh/id_rsa.pub:
# ssh-keygen -t rsa
2. Now copy your public key over to the remote host:
# scp ~/.ssh/id_rsa.pub username@remote-host.com:~
# ssh username@remote-host.com
# cat ~/id_rsa.pub >> ~/.ssh/authorized_keys
3. You’re done! You can now access [...]

Picture:Comments No Comments | Be the first to write one!