Last active
January 23, 2017 15:50
-
-
Save RandomInsano/d4765e331f3f9e7ea7d998380d8a6808 to your computer and use it in GitHub Desktop.
Tool for injecting my keys places
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
#!/bin/sh | |
set +e | |
if [ "" = "$1" ]; then | |
echo "You need to specify a host dummy" | |
exit | |
fi | |
cat ~/.ssh/id_rsa.pub | ssh $1 "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