Created
November 25, 2014 08:02
-
-
Save uetchy/9fff981395791a532b11 to your computer and use it in GitHub Desktop.
autholized_keys.sh
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 | |
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