Created
July 11, 2012 18:36
-
-
Save estebistec/3092237 to your computer and use it in GitHub Desktop.
Distribute public key
This file contains hidden or 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
# I always forget this command snippet and especially that ssh refuses if file privs aren't just so | |
cat ~/.ssh/id_rsa.pub | ssh user@remote-host "mkdir -p .ssh; chmod 700 .ssh; cat >> .ssh/authorized_keys2; chmod 600 .ssh/authorized_keys2" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment