Skip to content

liees/skm-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SSH keys manager for nodejs


Build Status npm version downloads CRAN

Update Notes

This update adds checking the local ssh-key during initialization and adding it to skm-node

Before

  1. Make sure the ~/.skm directory does not exist, please.

  2. save first to avoid loss if you are currently using sshkey, please.

Installtion

$ npm install -g skm-node

Usage

Usage: skm [options] [command]

Options:
  -V, --version     output the version number
  -h, --help        output usage information

Commands:
  init              Initialize skm-node, if the machine already has ssh key and add it to skm-node
  ls                List all the ssh key
  use <name>        change the use ssh key
  c <name> <email>  create new ssh key
  help              Print this help

Example

$ skm init

skm-node init successful!
$ skm ls

    gmail
 #  default
$ skm c <email> <name>

$ skm c liees@gmail.com gmail

# enter

Enter passphrase (empty for no passphrase):
Enter same passphrase again:

successful, You can use the gmail ssh key!
$ skm use <name>

$ skm use gmail
Now SSH KEY use the: gmail

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

Licence

this repo is released under the WTFPL – Do What the Fuck You Want to Public License.

About

SSH keys manager for Nodejs

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published