Skip to content

Instantly share code, notes, and snippets.

@baniol
Created June 7, 2014 20:23
Show Gist options
  • Save baniol/b3a0108614202a461322 to your computer and use it in GitHub Desktop.
Save baniol/b3a0108614202a461322 to your computer and use it in GitHub Desktop.
copy ssh public key to a remote server
cat ~/.ssh/id_rsa.pub | ssh usert@host "cat >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment