Skip to content

Instantly share code, notes, and snippets.

@xyznaveen
Last active July 5, 2018 06:40
Show Gist options
  • Save xyznaveen/0f03f1935d897d36923b4b7c5f4957e6 to your computer and use it in GitHub Desktop.
Save xyznaveen/0f03f1935d897d36923b4b7c5f4957e6 to your computer and use it in GitHub Desktop.
Generate Private / Public key in ~/.ssh/ folder
ssh-keygen -t rsa
Copy the resulting public key to the ~/.ssh/known_hosts folder on the server
cat ~/.ssh/id_rsa.pub | ssh username@hostname 'cat >> .ssh/authorized_keys'
ENJOY!! :D
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment