Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save sven-bock/b3df7bd8183d62e05a4bdf23248cbd97 to your computer and use it in GitHub Desktop.
Save sven-bock/b3df7bd8183d62e05a4bdf23248cbd97 to your computer and use it in GitHub Desktop.
Add ssh key to authorized keys to connect by ssh by key
cat ~/.ssh/id_rsa.pub | (ssh user@host "cat >> ~/.ssh/authorized_keys")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment