Create authorized_keys file with public SSH keys inside GH teams
2.4K
https://github.com/orimarti/github-ssh-keys
Creates an authorized_keys file with the public SSH keys of the users on the selected Github teams inside one organization. This allows to manage SSH authorized_keys file from Github, associating instances with teams allowed to login.
Next env variables must be set:
Next env variables can be set:
Execution example with docker, best option is to add this command to cron:
docker run -v /home/user/.ssh/authorized_keys:/home/user/.ssh/authorized_keys -e GITHUB_ACCESS_TOKEN=***** -e GITHUB_ORGANIZATION=your_org -e GITHUB_TEAMS=frontend,backend,operations -e AUTHORIZED_KEYS_FILE=/home/user/.ssh/authorized_keys --user=$(id -u) orimarti/github-ssh-keys
Content type
Image
Digest
Size
3.3 MB
Last updated
almost 8 years ago
docker pull orimarti/github-ssh-keys