Last active
August 29, 2015 14:17
-
-
Save tkhduracell/96a4775841775c21d085 to your computer and use it in GitHub Desktop.
How to install SSH 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
# | |
[email protected] | |
T_KEY=~/.ssh/mykey.pub | |
# | |
ssh $T_HOST 'umask 0077 && mkdir -p ~/.ssh && touch authorized_keys' | |
cat $T_KEY | ssh $T_HOST 'cat >> ~/.ssh/authorized_keys && echo "Key copied succefully"' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment