Skip to content

Instantly share code, notes, and snippets.

@fizx
Created February 9, 2010 17:36
Show Gist options
  • Select an option

  • Save fizx/299445 to your computer and use it in GitHub Desktop.

Select an option

Save fizx/299445 to your computer and use it in GitHub Desktop.
#!/bin/sh
for ARG in $*
do
cat ~/.ssh/id_rsa.pub | ssh $ARG "mkdir -p .ssh; touch .ssh/authorized_keys; cat - >> .ssh/authorized_keys"
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment