Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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