Skip to content

mazgi/openssh-authorizedkeyscommand-github

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenSSH AuthorizedKeysCommand GitHub

GitHub Actions status for "test-all"

Get your SSH Public Key from GitHub.

> openssh-authorizedkeyscommand-github --help
OpenSSH AuthorizedKeysCommand GitHub

Usage:
  openssh-authorizedkeyscommand-github --user=<user>
  openssh-authorizedkeyscommand-github (--help | --version)

Options:
  --user=<user>   GitHub user.
  -V, --version   Show version.
  -h, --help      Show this screen.

How to use

  1. Place the binary in your $PATH.
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/
  1. Update /etc/ssh/sshd_config like below.
AuthorizedKeysCommandUser nobody
AuthorizedKeysCommand /usr/local/bin/openssh-authorizedkeyscommand-github --user %u
  1. Restart SSH server.

About

Get your SSH Public Key from GitHub.

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

  •  

Packages

No packages published

Languages