Skip to content

Instantly share code, notes, and snippets.

@DerfOh
Last active January 2, 2017 06:32
Show Gist options
  • Save DerfOh/b65efff31b12c5049077de66fcd86493 to your computer and use it in GitHub Desktop.
Save DerfOh/b65efff31b12c5049077de66fcd86493 to your computer and use it in GitHub Desktop.
Add SSH Keys to server

How to add your ssh keys in one line

cat ~/.ssh/id_rsa.pub | ssh user@hostname "mkdir -p ~/.ssh && cat >>  ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment