Created
December 29, 2012 07:58
-
-
Save ftao/4405304 to your computer and use it in GitHub Desktop.
Install ssh pub key to remote server in one line
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
cat path/to/pub.key | ssh your.remote.server 'sh -c "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