Sign inSign up

jasongwartz/github-authorized-keys-docker

By jasongwartz

Updated over 8 years ago

A Docker image which pulls a user's SSH keys from GitHub and puts them in authorized_keys

Image
1

10K+

jasongwartz/github-authorized-keys-docker repository overview

github-authorized-keys-docker

This is a docker container which contains a perl script to pull a user's SSH keys from Github and add them to the user's ssh authorized keys file.

This will overwrite the authorized keys file, so it is only appropriate for a case where only the keys uploaded to Github should be able to log in.

Specify the github user keys to pull using an environment variable to docker run or docker-compose, like:

# with docker run:
docker run \
  -v ~/.ssh:/perl/.ssh \
  -e GITHUB_USER=jasongwartz \
    jasongwartz/github-authorized-keys-docker

# or with docker-compose
GITHUB_USER=jasongwartz docker-compose up -d`

Tag summary

Content type

Image

Digest

Size

84.8 MB

Last updated

over 8 years ago

docker pull jasongwartz/github-authorized-keys-docker