SSH Key Based Login

From on 12-17-2011:

Execute on machine you normally use to login FROM using user@host of machine you want to login TO – accept the defaults for the first command. If you have completed the first step in the past (if ls ~/.ssh/ output shows, just execute the 2nd and 3rd lines.

ssh-keygen -t rsa
ssh user@host mkdir -p .ssh
cat .ssh/ | ssh user@host 'cat >> .ssh/authorized_keys'

Leave a Reply

My notes for future me