Skip to content

GitHub CLI extension to generate SSH allowed signers file for SSH signing

Notifications You must be signed in to change notification settings

andyfeller/gh-ssh-allowed-signers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

gh-ssh-allowed-signers

A gh extension to generate SSH allowed users file from GitHub users' signing keys.

Quickstart

  1. gh extension install andyfeller/gh-ssh-allowed-signers
  2. gh ssh-allowed-signers <organization>/<team>
  3. Profit! 💰 💸 🤑 💸 💰

Usage

gh-ssh-allowed-signers extension will create and populate ~/.ssh/allowed_signers file with public signing keys for users individually or all users within a GitHub team.

$ gh ssh-allowed-signers --help

Generate SSH allowed signers file from GitHub users.

USAGE
  gh-ssh-allowed-signers [options] <organization>/<team>
  gh-ssh-allowed-signers [options] <user>

FLAGS
  -a, --append                        Append signing keys to existing SSH allowed signers file
  -d, --debug                         Enable debugging
  -f, --force                         Whether to overwrite output file if it exists
  -o, --output-file <output-file>     Path to SSH allowed signers file to generate; default '/Users/andyfeller/.ssh/allowed_signers'

The resulting SSH allowed signers file will contain all of the public signing keys for each user with the principal based on the user's GitHub no reply email address. For example, here is the result if you executed gh ssh-allowed-signers andyfeller:

[email protected] ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILGK6uBGvfjK+DGqiDguxDFUoScNC/hwKQ02clco0nz8
[email protected] ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIALqMCzXle3FO/oaOIyxkmutYphiZ8TH+udmH4Mc/a1V

Setup

Like any other gh CLI extension, gh-ssh-allowed-signers is trivial to install or upgrade and works on most operating systems:

  • Installation

    gh extension install andyfeller/gh-ssh-allowed-signers

    For more information: gh extension install

  • Upgrade

    gh extension upgrade ssh-allowed-signers

    For more information: gh extension upgrade

About

GitHub CLI extension to generate SSH allowed signers file for SSH signing

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages