/github-team-keys

Fetch github organization member keys

Primary LanguageShell

Github Team Keys Fetcher

This is a small bash script that grabs the public keys for all of the users in a Github organization. This is great for adding public keys to the authorized_keys file in linux servers.

Dependencies

  • curl

Usage

First you will need to create a new access token

Clone the repo, then run:

sh fetch.sh ACCESS_TOKEN organization

Or a quick one-liner:

curl -sL http://git.io/soXC7Q | bash -s ACCESS_TOKEN organization > authorized_keys

Credits

  • The json parser is adapted from the snippet provided by cjus