GitHub SSH Key Sync for Linux Servers
Automatically sync GitHub users' public SSH keys into your server's
~/.ssh/authorized_keys. Runs automatically hourly.
Grant a GitHub user SSH access to a Linux account.
sudo gh-sks --add <linux_user> <github_user>
Revoke a GitHub user's SSH access. Run a sync afterwards to apply.
sudo gh-sks --remove <linux_user> <github_user>
Show all configured Linux ↔ GitHub user mappings.
gh-sks --list
Run an immediate sync. Also runs automatically every hour via systemd timer.
sudo gh-sks
Download and install the latest release. Config and timer are preserved.
sudo gh-sks --update
Remove gh-sks, its systemd timer, config, and all managed key blocks.
sudo gh-sks --uninstall