iEntry 10th Anniversary LinuxHaxor WH MH

Password-less SSH Connection


Here is a simple quick tip.

This is not for everyone because no critical server should have password-less connection. Personally, I have several servers (virtual slices) with slicehost which I need to connect to several times a day and its very inconvenient for me to type in password each time I need to connect to my server. There are several way to automate this. My personal favourite:

Create new password-less SSH keys on your local machine with: ssh-keygen –t rsa

null

Copy your public key to remote server: cat ~/id_rsa.pub >> ~/.ssh/authorized_keys

Next time you try to connect to the server it should not prompt you for password.

I have several layers of protection on my local machine and the servers I connect to are not mission critical, so I am not too worried about it. Its not a secure practice but its convenient.


Comments are closed.