Skip to content

Instantly share code, notes, and snippets.

@mvneves
Last active August 29, 2015 14:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mvneves/a341a487a1f0da7c5352 to your computer and use it in GitHub Desktop.
Save mvneves/a341a487a1f0da7c5352 to your computer and use it in GitHub Desktop.
SSH without password

Using SSH without password

Generate a pair of keys in the local machine:

ssh-keygen -t rsa

Add public key to server's .ssh/authorized_keys file:

cat ~/.ssh/id_rsa.pub | ssh user@server 'cat >> .ssh/authorized_keys'

Try to connect to server again:

ssh user@server
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment