Socket
Book a DemoInstallSign in
Socket

github-ssh-keys

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github-ssh-keys

fetch ssh keys for given usernames from github

latest
Source
npmnpm
Version
0.1.2
Version published
Weekly downloads
3
Maintainers
1
Weekly downloads
 
Created
Source

github-ssh-keys

fetch ssh keys from github for a given username

Build Status Dependency Status

Usage (cli)

Use github-ssh-keys to fetch users ssh public keys from github.

$ github-ssh-keys flootr meaku

--format

If you use the --format flag you are able to auto format keys to fit in a authorized-keys file.

$ github-ssh-keys --format flootr meaku jhnns >> authorized_keys

Library (API)

var fetchKeys = require('git-fetch-ssh');
var username = 'flootr';

fetchKeys(username)
    .then(console.log)
    .catch(console.error);

Or, if you want to fetch the keys for more than one user.

var users = ['jhnns', 'meaku', 'topa', 'matthaias', 'sbat', 'flootr'];

Promise.all(users.map(fetchKeys))
    .then(console.log)
    .catch(console.error);

Keywords

ssh

FAQs

Package last updated on 07 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts