Skip to content

Instantly share code, notes, and snippets.

@alexbartsch
Last active August 29, 2015 14:02
Show Gist options
  • Save alexbartsch/607ce217d87e4a599c78 to your computer and use it in GitHub Desktop.
Save alexbartsch/607ce217d87e4a599c78 to your computer and use it in GitHub Desktop.
Add Public SSH Key to Remote Server in a Single Command
ssh-keygen -t rsa
cat ~/.ssh/id_rsa.pub | ssh user@hostname 'cat >> .ssh/authorized_keys'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment