host key

The key pair an SSH server uses to prove its identity to every client that connects.

In more detail

On first connection the client shows the key's fingerprint and asks whether to trust it; afterwards it compares against known_hosts. A changed host key can mean a rebuilt server, or someone in the middle, so verify it independently rather than dismissing the warning. Host key trust comes before user authentication.

Example

host=server key=abc known=no ask=verify records a first-seen key awaiting verification.

Related terms

Taught in

References