{"id":37099827,"url":"https://github.com/conortm/ghkeys","last_synced_at":"2026-01-14T12:10:28.996Z","repository":{"id":30870785,"uuid":"34428409","full_name":"conortm/ghkeys","owner":"conortm","description":"Populate authorized_keys from GitHub users and/or teams","archived":false,"fork":false,"pushed_at":"2016-03-09T03:45:32.000Z","size":40,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-06-19T13:47:19.321Z","etag":null,"topics":["github","golang","ssh-key"],"latest_commit_sha":null,"homepage":"https://conortm.io/ghkeys","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/conortm.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-23T02:18:17.000Z","updated_at":"2019-05-31T14:28:05.000Z","dependencies_parsed_at":"2022-09-07T01:50:37.606Z","dependency_job_id":null,"html_url":"https://github.com/conortm/ghkeys","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"purl":"pkg:github/conortm/ghkeys","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conortm%2Fghkeys","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conortm%2Fghkeys/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conortm%2Fghkeys/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conortm%2Fghkeys/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/conortm","download_url":"https://codeload.github.com/conortm/ghkeys/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/conortm%2Fghkeys/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419561,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["github","golang","ssh-key"],"created_at":"2026-01-14T12:10:28.236Z","updated_at":"2026-01-14T12:10:28.990Z","avatar_url":"https://github.com/conortm.png","language":"Go","readme":"# ghkeys [![Build Status](https://img.shields.io/travis/conortm/ghkeys.svg)](https://travis-ci.org/conortm/ghkeys) [![Coverage Status](https://img.shields.io/coveralls/conortm/ghkeys.svg)](https://coveralls.io/r/conortm/ghkeys?branch=master)\n\n[ghkeys](https://github.com/conortm/ghkeys) is a simple command line tool for syncing server users' authorized SSH keys with those of one or more GitHub accounts.\n\nVia configuration, specify individual GitHub users and/or entire teams, whose SSH keys should either be output directly or written to server users' `authorized_keys` files.\n\n## Installation\n\n```bash\ngo get github.com/conortm/ghkeys\n```\n\n## Configuration\n\nCreate a `config.yml` file like [`config.example.yml`](./config.example.yml):\n\n```yaml\n---\n# Replace with your own personal access token:\ngithub_token: my_github_token\n# Array of server usernames and the GitHub source(s) of their authorized keys:\nusers:\n  - username: superadmin\n    github_users:\n      - github_user_1\n    github_teams:\n      # Specify teams by Org name and team name, separated by a /\n      - MyOrg/Team 1\n      - MyOrg/Team 2\n  - username: admin\n    github_users:\n      - github_user_1\n      - github_user_2\n    github_teams:\n      - MyOtherOrg/Team 3\n```\n\n*Note*: Replace `my_github_token` with your own [personal access token](https://help.github.com/articles/creating-an-access-token-for-command-line-use/).\n\n## Usage\n\nTo print all keys:\n\n```bash\nghkeys -config=/path/to/config.yml\n```\n\nPass single username argument to print only that user's keys, for example, when using `AuthorizedKeysCommand`:\n\n```bash\nghkeys -config=/path/to/config.yml superadmin\n```\n\nUse the `-write` flag to write keys to users' `authorized_keys` files:\n\n```bash\nghkeys -config=/path/to/config.yml -write\n```\n\n## TODO\n\n- [ ] Implement https://github.com/sourcegraph/apiproxy\n- [ ] Validate config file\n- [ ] Better error handling\n\n## License\n\n[MIT](./LICENSE) © [Conor McNamara](http://conortm.io/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconortm%2Fghkeys","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fconortm%2Fghkeys","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fconortm%2Fghkeys/lists"}