A command line tool to generate ssh authenticaiton keys and add them to the ssh agent automatically.
It is boring and tiring to generate many ssh passphrases and authenticaiton keys and add them to the ssh agent. This tool executes that task automatically.
https://giphy.com/gifs/demo-ssh-seed-xUPGcnBZ18P2IchhoQ
This gif animation shows
- Install
- Create a configuration file skelton
- Create multiple passphrases and authenticaiton keys and add keys to the ssh agent by one command (not interactive)
- expect
- Node.js
$ npm i -g ssh-seed
To see All available options and subcommand, please see here.
- Create the configuration file.
$ ssh-seed init
- After edit the configuration file, run ssh-seed
$ ssh-seed
Running ssh-seed with no command will run the run
subcommand.
The run
subcommand creates passphrases and authentication keys and adds keys to ssh-agent.
If you want only to create passphrases and authentication keys but not to add keys to ssh-agent,
use the keygen
command.
$ ssh-seed keygen
The keygen
command was added in v1.1.0 .
If you want only to add existing keys to ssh-agent
but not to create new passphrases and authentication keys,
use the add
command.
$ ssh-seed add
The add
command was added in v1.2.0 .
Please see comments of the configuration file.
When the ssh-seed command is run, the configuration file ssh-seed.yml
is searched from the current directory to the root directory in order.
If it is found once, the search is stopped.
If it is not found, an error is occured.
When the ssh-seed command generate the authenticaiton keys, at the same time passphrases of them are generated and written in the ssh-seed.pass.yml. The ssh-seed.pass.yml is generated in the directory where ssh-seed.yml is.
Please see here. This change log is generated automatically with standard-version.
- Fork (https://github.com/suzuki-shunsuke/ssh-seed/fork)
- Create a feature branch
- Commit your changes
- Rebase your local changes against the master branch
- Run test suite with the
npm test
command and confirm that it passes - Create a new Pull Request