resolve-ssh-key
v0.1.1
Published
Easily resolve the full path of your SSH private keys using their basename
Downloads
2
Readme
ssh-key-resolver
Easily resolve the full path of your SSH private keys using their basename.
Example
'use strict';
var resolveSshKey = require('resolve-ssh-key');
var path = require('path');
var searchPath = path.resolve(process.env.HOME, '.ssh');
resolveSshKey(searchPath, 'my-key');
// <- '/Users/me/.ssh/my-key.pem'
License
MIT