iagctl hostkeys scan
Scan hosts for their host keys.
The iagctl hostkeys scan command scans one or more hosts for their host keys using the ssh-keyscan utility and adds any keys it finds 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
Scan a single host
The following example scans 10.0.0.1 for its host keys and adds them to the gateway known_hosts file:
Scan multiple hosts
The following example scans 10.0.0.1 and 10.0.0.2 for their host keys:
Replace mismatched fingerprints
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: