Skip to content

Instantly share code, notes, and snippets.

@naneri
Last active July 29, 2016 11:31
Show Gist options
  • Save naneri/253dd2359e77df265fe3b64a0495d279 to your computer and use it in GitHub Desktop.
Save naneri/253dd2359e77df265fe3b64a0495d279 to your computer and use it in GitHub Desktop.
Adds ssh identity to a server
cat ~/.ssh/id_rsa.pub | ssh user@123.45.56.78 "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