Socket
Book a DemoInstallSign in
Socket

known-hosts

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

known-hosts

Parse ~/.ssh/known_hosts into a Javascript array

latest
npmnpm
Version
0.1.0
Version published
Maintainers
1
Created
Source

known-hosts

Parse ~/.ssh/known_hosts into a Javascript array

npm install known-hosts

Usage

var knownHosts = require('known-hosts');

console.log(knownHosts);

The above example will print out an array of the following form

[{
	host: 'github.com',
	publicKey: 'ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAq2A7hRGmdnm9tUDbO9IDS...',
	fingerprint: '1627aca576282d36631b564debdfa648'
}, {
	host: '192.30.252.129'
	...
}]

The fingerprint is similar to the fingerprint in the ssh known host prompt (an md5 of the public key)

License

MIT

FAQs

Package last updated on 27 Jan 2014

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