Skip to content

Instantly share code, notes, and snippets.

@RandomInsano
Last active January 23, 2017 15:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RandomInsano/d4765e331f3f9e7ea7d998380d8a6808 to your computer and use it in GitHub Desktop.
Save RandomInsano/d4765e331f3f9e7ea7d998380d8a6808 to your computer and use it in GitHub Desktop.
Tool for injecting my keys places
#!/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