Created
May 30, 2013 20:54
-
-
Save kennonb/5681155 to your computer and use it in GitHub Desktop.
Secure Copy Public Key to Remote Location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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