This update adds checking the local ssh-key during initialization and adding it to skm-node
-
Make sure the
~/.skm
directory does not exist, please. -
save first to avoid loss if you are currently using sshkey, please.
$ npm install -g skm-node
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
$ 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
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -am 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request
this repo is released under the WTFPL – Do What the Fuck You Want to Public License.