Skip to content

Instantly share code, notes, and snippets.

@joejag
Created April 18, 2012 16:18
Show Gist options
  • Save joejag/2414675 to your computer and use it in GitHub Desktop.
Save joejag/2414675 to your computer and use it in GitHub Desktop.
passwordless ssh
TARGET: ssh-keygen -t rsa
TARGET: chmod 700 ~/.ssh
HOST: cat ~/.ssh/id_rsa.pub | ssh user@target 'cat >> ~/.ssh/authorized_keys'
HOST: ssh user@target 'hostname'
VALIDATE: ssh -F svn_no_pass target 'exit' &> /dev/null
file contains:
PasswordAuthentication no
ChallengeResponseAuthentication no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment