Skip to content

Instantly share code, notes, and snippets.

@leodutra
Created February 17, 2016 18:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leodutra/315a458620be94749643 to your computer and use it in GitHub Desktop.
Save leodutra/315a458620be94749643 to your computer and use it in GitHub Desktop.
Add RSA key remote SSH service authorized keys
#!/bin/sh
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