Passwordless SSH

Tired of having to retype your password each time you login to that remote computer?
Let me show you how to setup passwordless ssh.
Generate public and private keys on your client computer. Leave the passphrase empty.

user@local:~$ ssh-keygen -t rsa

Distribute your public key (~/.ssh/id_rsa.pub) to each servers .ssh/authorized_keys file.
user@local:~$ cat ~/.ssh/id_rsa.pub | ssh user@servername 'tee -a .ssh/authorized_keys'
 
Security concerns: If someone gets hold of your private key AND your left the passphrase empty, the he will have access to all of the remote computers just as you.


[ad#Google Adsense-1]

Leave a Reply