Created
April 18, 2012 16:18
-
-
Save joejag/2414675 to your computer and use it in GitHub Desktop.
passwordless ssh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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