hostkeys add
Add a host key to torero
Synopsis
Add
This command will add a host key to torero's known_hosts file. torero's known_hosts file exists within the app working
directory whose location is set by the configuration variable TORERO_APPLICATION_WORKING_DIR
.
torero hostkeys add <host> <key type> <fingerprint> [flags]
Examples
Manually Add A Host Key
Adds a host key to the known host file for the host 10.0.0.1
, a key encryption type of ssh-rsa
, and a fingerprint of
ABC123
.
>_ torero hostkeys add 10.0.0.1 ssh-rsa ABC123
Manually Add A Host Key With Replace Flag
Adds an ssh-rsa host key for 10.0.0.1
, and a key encryption type of ssh-rsa
to torero. Replace a host key with
the same host/key type but a different fingerprint if one exists. Without --replace
, an error would be thrown if there
were a match for security reasons.
>_ torero hostkeys add 10.0.0.1 ssh-rsa 123ABC --replace
Options
-h, --help help for add
--replace Replace keys with the same host/key type combination but a different fingerprint
instead of returning an error for security reasons
Options inherited from parent commands
--config string Path to the configuration file
--raw Displays the result of the command in its raw format
--verbose Enable verbose output
SEE ALSO
- torero hostkeys - Manage remote system ssh host keys