Fetch public SSH keys from any GitHub user

TL;DR Using the npm package github-ssh-keys globally makes it possible to retrieve public ssh keys for (multiple) users ready for copy/paste

Josef Glatz
Productiveness

--

Some usage scenarios

  • Sending public keys of some of your colleagues to a customer
  • Creating a ready2use authorized_keys file by piping the output directly to a file (which you can send)
  • Fetch public keys of a friend on GitHub whom you want to grant access to any private GIT hosting application

Installation

Install it globally by using npm with cd && npm install -g github-ssh-keys.

Usage

Retrieve all public SSH keys from a GitHub user and copy it to your macOS clipboard

github-ssh-keys georgringer --format | pbcopy

Get keys of multiple GitHub users

github-ssh-keys georgringer josefglatz --format

--

--