Quick SSH Remote Key Setup For Passwordless Login
Tuesday, August 4th, 2009 - 10:31 pm - Uncategorized
Lots of different ways of creating keys and sending them to remote machines so you can login. This is just a quick reference for me and how I do it.
If you haven’t already done so, you need to create keys for your local machine:
ssh-keygen -t dsa
Next, store that key in the remote machine’s authorized_keys file:
cat ~/.ssh/id_dsa.pub | ssh remote-machine 'sh -c "cat - >>~/.ssh/authorized_keys2"'
Now you can just use passwordless login to those machine that you ssh into the most (if it is setup, it is by default for me).
