Sunday, December 16, 2007
Setting up SSH keys
This is one of those things that I had an admin write up for me, and something I always always forget. So I am posting here so that I don't lose it, and perhaps it will help someone else out.
1. Go to your home directory
2. Execute: ssh-keygen -t dsa
This may take a minute or so to run. Take defaults when prompted.
3. cd to ~/.ssh directory
4. Copy id_dsa.pub to target ~/.ssh directory on target server with a temporary name (i.e. .keys)
5. On the target machine rename the temp file to "authorized_keys", but make sure that it doesn't already exist.
6. Make sure that the file authorized_keys is chmod'ed to 600.
7. Try it out
1. Go to your home directory
2. Execute: ssh-keygen -t dsa
This may take a minute or so to run. Take defaults when prompted.
3. cd to ~/.ssh directory
4. Copy id_dsa.pub to target ~/.ssh directory on target server with a temporary name (i.e. .keys)
5. On the target machine rename the temp file to "authorized_keys", but make sure that it doesn't already exist.
6. Make sure that the file authorized_keys is chmod'ed to 600.
7. Try it out
Labels: ssh