No commit activity in last 3 years
No release in over 3 years
Pulls all of the keys for all members of an organization from GitHub
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.3
>= 0
>= 0

Runtime

~> 1.3
 Project Readme

Build Status

GithubAuthorizedKeys

This will enable you to automatically generate an authorized_keys file based on members of a GitHub organization.

Installation

Usually you will want this as a global gem:

$ gem install github_authorized_keys

Usage

Once installed, you will have a binary that you can use:

$ github_authorized_keys

By default, it will search for a configuration in your home folder ~/.github_authorized_keys.yml. If you would like to use an alternative, simply pass it along on the command line:

$ github_authorized_keys my_github_authorized_keys.yml

The executable will output to STDOUT, so if you would like to do this is cron for example:

@daily github_authorized_keys > /home/deploy/.ssh/authorized_keys

Configuration

The format looks like so:

---
organization: 'my-organization'
oauth_token: 'github-oauth-token'
additional_keys:
  - '# a comment'
  - 'ssh-rsa 1'

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request