https://github.com/marcbachmann/authorizedkeys-github
A service that fetches public keys from github and writes them into an .ssh/authorized_keys file
https://github.com/marcbachmann/authorizedkeys-github
authorized-keys devops-services docker github service
Last synced: 4 months ago
JSON representation
A service that fetches public keys from github and writes them into an .ssh/authorized_keys file
- Host: GitHub
- URL: https://github.com/marcbachmann/authorizedkeys-github
- Owner: marcbachmann
- Created: 2017-07-16T23:49:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:32:27.000Z (over 1 year ago)
- Last Synced: 2025-01-03T04:50:36.617Z (5 months ago)
- Topics: authorized-keys, devops-services, docker, github, service
- Language: JavaScript
- Homepage:
- Size: 45.9 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# [authorizedkeys-github](https://github.com/marcbachmann/authorizedkeys-github) [](https://hub.docker.com/r/marcbachmann/authorizedkeys-github)
A server that fetches public keys of all members of a github team and writes them into an `.ssh/authorized_keys` file.
You can see a list of all users and their keys on `http://localhost:3000/`
### Usage
```bash
docker run -it -v /root/.ssh:/user/.ssh -p 3000:3000 \
-e 'GITHUB_TOKEN=your-github-token' \
-e 'GITHUB_ORG=upfrontIO' \
-e 'GITHUB_TEAM=Livingdocs' \
-e 'AUTHORIZED_KEYS_PATH=/Users/marcbachmann/.ssh/authorized_keys' \
marcbachmann/authorizedkeys-github# or
docker run -it -v /root/.ssh:/user/.ssh -p 3000:3000 \
-e 'GITHUB_TOKEN=your-github-token' \
-e 'GITHUB_TEAM_ID=352089' \
-e 'AUTHORIZED_KEYS_PATH=/user/.ssh/authorized_keys' \
marcbachmann/authorizedkeys-github
```