Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cfstras/github-ssh-auth

Automatically populates authorized_keys file based on members of a GitHub organisation or team
https://github.com/cfstras/github-ssh-auth

Last synced: about 1 month ago
JSON representation

Automatically populates authorized_keys file based on members of a GitHub organisation or team

Awesome Lists containing this project

README

        

# github-ssh-auth

Automatically provision SSH authorized_keys to your user by scraping a GitHub organisation (optional team).

## Setup
- If you're on Debian, you will need some more packages:
```bash
sudo apt install python3 python3-venv
```
- Also, upgrade your system. An outdated libssl will cause pain.
```bash
sudo apt update && sudo apt upgrade
```

The following script will:

- Make a virtualenv and install dependencies from [requirements.txt](requirements.txt)
- Setup a systemd-user-service `github-ssh-auth.service`
- Setup a timer which refreshes authorized_keys every 30 minutes

```bash
./setup.sh
```

- Edit `config.yml`
- Create an access token
- Set your organization and team
- optionally, add fallback ssh keys which will always be added

# License
GPLv3. Other licenses available upon request.