Skip to content
/ ghkeys Public

Authorise ssh connections with keys from GitHub

Notifications You must be signed in to change notification settings

rtgnx/ghkeys

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GH Keys

Use github public keys to authorize ssh connections.

Install

go install github.com/rtgnx/ghkeys/cmd@latest

SSHD Config

Allow any valid user from github

AuthorizedKeysCommand /usr/bin/ghkeys %u 2> /tmp/ghkey.log
AuthorizedKeysUser nobody

Allow specific user

AuthorizedKeysCommand /usr/bin/ghkeys --users rtgnx,myfriend %u 2> /tmp/ghkey.log
AuthorizedKeysUser nobody

Users will be looked up against /etc/passwd and check if user id is > 1000

About

Authorise ssh connections with keys from GitHub

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages