Skip to content

Instantly share code, notes, and snippets.

@seifsallam
Last active December 18, 2015 12:39
Show Gist options
  • Save seifsallam/5784348 to your computer and use it in GitHub Desktop.
Save seifsallam/5784348 to your computer and use it in GitHub Desktop.
login using SSH with no password

Login using SSH with no password

  1. Create or Copy Development machine's public RSA located ~/.ssh/id_rsa.pub
  2. Login to server and paste it in vim ~/.ssh/authorized_keys
  3. Ensure that /etc/ssh/sshd_config contains PubkeyAuthentication yes and RSAAuthentication yes uncommented
  4. Finally set chmod go-w ~/, chmod 700 ~/.ssh, and chmod 600 ~/.ssh/authorized_keys to make sure that permissions are set correctly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment