https://github.com/mazgi/openssh-authorizedkeyscommand-github
Get your SSH Public Key from GitHub.
https://github.com/mazgi/openssh-authorizedkeyscommand-github
authorizedkeyscommand ssh
Last synced: 6 months ago
JSON representation
Get your SSH Public Key from GitHub.
- Host: GitHub
- URL: https://github.com/mazgi/openssh-authorizedkeyscommand-github
- Owner: mazgi
- License: mit
- Created: 2020-03-04T10:33:05.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2020-10-03T18:54:38.000Z (over 5 years ago)
- Last Synced: 2025-03-06T02:44:54.178Z (11 months ago)
- Topics: authorizedkeyscommand, ssh
- Language: Rust
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# OpenSSH AuthorizedKeysCommand GitHub

Get your SSH Public Key from GitHub.
```console
> openssh-authorizedkeyscommand-github --help
OpenSSH AuthorizedKeysCommand GitHub
Usage:
openssh-authorizedkeyscommand-github --user=
openssh-authorizedkeyscommand-github (--help | --version)
Options:
--user= GitHub user.
-V, --version Show version.
-h, --help Show this screen.
```
## How to use
1. Place the binary in your `$PATH`.
```console
curl -L https://github.com/mazgi/openssh-authorizedkeyscommand-github/releases/download/v0.0.1/openssh-authorizedkeyscommand-github.x86_64-unknown-linux-gnu.tar.gz | sudo tar xz -C /usr/local/bin/
```
2. Update `/etc/ssh/sshd_config` like below.
```ssh_config
AuthorizedKeysCommandUser nobody
AuthorizedKeysCommand /usr/local/bin/openssh-authorizedkeyscommand-github --user %u
```
3. Restart SSH server.