0.4.2 • Published 10 years ago
mkkey v0.4.2
mkkey
mkkey makes ssh keys!
Installation
$ npm install -g mkkey
Usage
$ mkkey test
Output
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC5Ln8cFLFxZ+dNLXiBpyjTIiEVujZ5SGkVQnMj6d8USfY11zR3CqOP/AxQgX/kJs4Kb9y7EGOcdBvsXsxfW/z67IIPxn7881KNO1nbZYaUDP+5Ll6nM+ovpGh4LJb0/vYo+UHii8JGoiTZe1VGGgnyoEbjpDfSyDzPqtdE7rGKIf3/YYt98b0edljtYperBhvOVHtl2MwwU+0+Oq1l2vEvYLJ0h/zdBN/eQ9JP4IkzzhriabQOnrZE9lLMGoRwM3Rjl9TPVnhsoYnOeOTKVrlJoKXVmHkCDo9frhB4Oxn75q3h4x+jf1sfZ86MxyUhLK1z6/z7/Tc7Z+T0fqu5RAn7
What just happened?
- If
~/.ssh
doesn't exist, it will be created test.pem
private key was created- The openssh-compatible public key was extracted from the private key and printed to stdout
- All permissions were properly set for the directory and the key
Namespaces
I like having a separate key for each user on each host, but putting all of
those keys in ~/.ssh
becomes unruly over time.
- What if you have multiple keys to manage for a single host?
- What if your usernames are used on multiple hosts?
Problem solved.
$ mkkey example.com/foo
...
$ mkkey example.com/bar
...
What just happened?
Everything is the same as above, except if a directory is specified, it will automatically be created for you.
~/ssh/example.com/foo.pem
was created~/ssh/example.com/bar.pem
was created- All permissions were properly set
Author
duchess code@donut.club
License
BSD 3-clause