Skip to content

Instantly share code, notes, and snippets.

@mrnovalles
Last active April 28, 2016 08:12
Show Gist options
  • Save mrnovalles/6ed262905ac66909c30490083c73ecc6 to your computer and use it in GitHub Desktop.
Save mrnovalles/6ed262905ac66909c30490083c73ecc6 to your computer and use it in GitHub Desktop.
#!/bin/sh
echo "List of Github users for pubkey retrieval (space separated):"
read users
for user in $users; do
wget https://github.com/$user.keys -O - >> /home/deploy/.ssh/authorized_keys
done
chown -R deploy:deploy /home/deploy/.ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment