Linux SSH Key Setup
March 4, 2010

How do you set up auto-login with ssh keys? Every time I set up a new server I have to look this up. So here I will write it down.

Step 1 — Generate the DSA key pair

ssh-keygen -t dsa

Step 2 — Copy key to remote server

scp .ssh/ user@server:/

Step 3 — Logon to remove server and append key to authorized_keys

ssh server
cat >> .ssh/authorized_keys