Skip to content

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/ | 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
You can’t perform that action at this time.