Last active
November 30, 2017 00:26
-
-
Save bq1990/ffff391f135d3031b13a9a0f735dabde to your computer and use it in GitHub Desktop.
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
cat ~/.ssh/id_rsa.pub | ssh <user>@<hostname> 'umask 0077; mkdir -p .ssh; cat >> .ssh/authorized_keys && echo "Key copied"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment