Skip to content

Instantly share code, notes, and snippets.

@kennonb
Created May 30, 2013 20:54
Show Gist options
  • Save kennonb/5681155 to your computer and use it in GitHub Desktop.
Save kennonb/5681155 to your computer and use it in GitHub Desktop.
Secure Copy Public Key to Remote Location
scp ~/.ssh/id_rsa.pub [email protected]:/home/user/.ssh/uploaded_key.pub
ssh [email protected] "echo `cat ~/.ssh/uploaded_key.pub` >> ~/.ssh/authorized_keys"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment