Skip to content

Instantly share code, notes, and snippets.

@jpalala
Forked from GeorgeErickson/gist:1134831
Created March 26, 2013 07:37
Show Gist options
  • Save jpalala/5243724 to your computer and use it in GitHub Desktop.
Save jpalala/5243724 to your computer and use it in GitHub Desktop.
The procedure for setting up automatic private/public key login on our servers is as follows:
- On your own machine, go to $HOME/.ssh and type: ssh-keygen -t dsa
- When prompted for it, leave the default location for the file and let the passphrase empty
- Copy the content of the "id_dsa.pub" file that just got created into the $HOME/.ssh/authorized_keys and authorized_keys2 on our machine.
- Set the following permissions:
chmod 644 $HOME/.ssh/authorized_keys*
chmod 700 $HOME/.ssh
chmod 750 $HOME/
That's it, you shouldn't get prompted for your password anymore
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment