Skip to content

Instantly share code, notes, and snippets.

@teddyhartanto
Last active September 8, 2017 14:21
Show Gist options
  • Select an option

  • Save teddyhartanto/198e0bdfdf0e8976741def13296e5f9b to your computer and use it in GitHub Desktop.

Select an option

Save teddyhartanto/198e0bdfdf0e8976741def13296e5f9b to your computer and use it in GitHub Desktop.
Passwordless ssh
The underlying technology used here is the public key encryption scheme.
1. Use ssh-keygen, specify the name of the file containing the key
2. Copy the contents of the generated public key to ~/.ssh/authorized_keys in remote host
3. In remote host, chmod 600 authorized_keys
4. Enjoy ssh without passwords!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment