Identify the host keys configured on a server you administer, calculate their public fingerprints, and connect them to the host, port and client trust policy. Keep the previous and replacement fingerprints with the approved change record.
Record fingerprints from an authenticated source
Use an authenticated administrative channel, such as an approved management console. Review the effective server configuration for HostKey and HostCertificate entries. For an OpenSSH public host key on a server you control, run ssh-keygen -l -E sha256 -f /etc/ssh/ssh_host_ed25519_key.pub. Use the actual public key path and keep private keys in approved custody.
Where the server has multiple host key types, retain each relevant fingerprint and algorithm separately. If clients trust host certificates, record the configured host certificate identity and the client-side CA trust policy as well.
Capture the identity clients expect
| Inventory field | Example evidence |
|---|---|
| Endpoint identity | Approved host names, port, environment, instance identity and owner. |
| Public key or host certificate | Algorithm, SHA-256 fingerprint, source and observation time. |
| Client trust model | Pinned key or CA policy, distribution source and supported client versions. |
| Lifecycle | Approval or ticket, previous fingerprint, first observation and planned retirement date. |
Reconcile a host key mismatch before changing trust
A rebuilt server may legitimately present a different host key. Confirm the change record and retrieve the expected replacement fingerprint from the authenticated administrative source. Check whether the endpoint, rebuild time and new fingerprint agree before updating client trust.
Preserve the expected and observed fingerprints and the reason for the change. Escalate unexplained mismatches through the normal server ownership or incident process. Check a representative client after distributing the approved trust update.
Frequently asked questions
Is the SSH host key the same as a user's SSH key?
A host key identifies the SSH server. A user's key is a separate authentication credential. Record them under the scopes and policies that govern each.
Should I accept a changed SSH fingerprint from the connection prompt?
Verify the expected fingerprint using an independent authenticated source and check the server change record before updating trust.
Why might two clients report different keys for one server?
They may select different host key algorithms or reach different endpoints. Record the observed endpoint, algorithm and client policy.