SSH Key Based Login

From http://linuxproblem.org/art_9.html 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 id_rsa.pub), just execute the 2nd and 3rd lines.

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

Leave a Reply

Don't like what I say? Leave!