skm-node

SSH keys manager for nodejs

Usage no npm install needed!

<script type="module">
  import skmNode from 'https://cdn.skypack.dev/skm-node';
</script>

README

SSH keys manager for nodejs


Build Status npm version downloads CRAN

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
  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

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

$ skm c 123@qq.com 123
Enter passphrase (empty for no passphrase):
Enter same passphrase again:

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

$ skm use 123
Now SSH KEY use the: 123

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.