iagctl hostkeys add
Add a host key to the gateway.
The iagctl hostkeys add command adds a host key to the gateway known_hosts file. The known_hosts file is located in the application working directory set by the GATEWAY_APPLICATION_WORKING_DIR configuration variable.
Syntax
Examples
Add a host key
The following example adds an ssh-rsa host key for 10.0.0.1 with a fingerprint of ABC123:
Replace a mismatched fingerprint
If a host/key type combination already exists but has a different fingerprint, use --replace to update the key. Without --replace, the command returns an error for the mismatch: