Skip to content

A service that fetches public keys from github and writes them into an .ssh/authorized_keys file

Notifications You must be signed in to change notification settings

marcbachmann/authorizedkeys-github

Repository files navigation

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

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

About

A service that fetches public keys from github and writes them into an .ssh/authorized_keys file

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published