Skip to content

Instantly share code, notes, and snippets.

@fprieur
Last active August 29, 2015 13:55
Show Gist options
  • Save fprieur/8743322 to your computer and use it in GitHub Desktop.
Save fprieur/8743322 to your computer and use it in GitHub Desktop.
SSH key-based access configuration

on local machine do:

ssh-keygen and agree with all defaults (if you have no reasons do otherwise) cat ~/.ssh/id_rsa.pub and copy that key On remote machine:

mkdir ~/.ssh && chmod 700 ~/.ssh touch ~/.ssh/authorized_keys2 && chmod 600 ~/.ssh/authorized_keys2 Paste copied key into authorized_keys2

Wow!

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