Skip to content

Instantly share code, notes, and snippets.

@uetchy
Created November 25, 2014 08:02
Show Gist options
  • Save uetchy/9fff981395791a532b11 to your computer and use it in GitHub Desktop.
Save uetchy/9fff981395791a532b11 to your computer and use it in GitHub Desktop.
autholized_keys.sh
#!/bin/sh
GITHUB_USERS=(mochi udon soba)
DESTINATION=~/.ssh/authorized_keys
rm -rf "$DESTINATION"
for user in ${GITHUB_USERS[@]}
do
curl -L https://github.com/${user}.keys >> "$DESTINATION"
done
chmod 600 "$DESTINATION"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment