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
- known_hosts — The file where the SSH client stores host keys it has accepted, one per server, to check them on later connections.
- key fingerprint — A short hash of a public key, such as SHA256:abc..., that people can compare to confirm two keys are the same.
- trust on first use — The model where a client accepts a server's key the first time it sees it and then insists on the same key afterwards.
- man-in-the-middle attack — An attack where someone secretly sits between two parties, relaying and possibly altering their traffic while each thinks it talks to the other.
- SSH — A protocol for logging in to and running commands on another computer securely over a network.
Taught in
- SSH: The Protocol, And The Host Key You Accept — Linux Fundamentals & Systems Administration