Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jaredly/ssh-keypair
https://github.com/jaredly/ssh-keypair
Last synced: 22 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jaredly/ssh-keypair
- Owner: jaredly
- Created: 2013-10-11T01:27:06.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2016-01-26T23:58:57.000Z (almost 9 years ago)
- Last Synced: 2024-10-19T19:10:37.712Z (26 days ago)
- Language: JavaScript
- Size: 8.79 KB
- Stars: 7
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# Generate an SSH keypair with `ssh-keygen`
## keygen(comment, path, callback(err))
Generate the keys at the given path. `path` will be the private, and
`path + '.pub'` will be the public key.## keygen(comment, options, callback(err))
Specify an `options` object with fields `path` (used as above) and `type` (which
determines the type of keys generated - default "rsa", with "ecdsa" being a good
option if your system supports it).## keygen(comment, callback(err, privkey, pubkey))
Generate the keys to a random path and return them as strings.