Automatically provision SSH authorized_keys to your user by scraping a GitHub organisation (optional team).
- If you're on Debian, you will need some more packages:
sudo apt install python3 python3-venv
- Also, upgrade your system. An outdated libssl will cause pain.
sudo apt update && sudo apt upgrade
The following script will:
- Make a virtualenv and install dependencies from requirements.txt
- Setup a systemd-user-service
github-ssh-auth.service
- Setup a timer which refreshes authorized_keys every 30 minutes
./setup.sh
- Edit
config.yml
- Create an access token
- Set your organization and team
- optionally, add fallback ssh keys which will always be added
GPLv3. Other licenses available upon request.