known_hosts
The file where the SSH client stores host keys it has accepted, one per server, to check them on later connections.
In more detail
If a server's key no longer matches, ssh refuses to connect and warns loudly. Remove the old entry with ssh-keygen -R host only after verifying the new key independently.
Related terms
- host key — The key pair an SSH server uses to prove its identity to every client that connects.
- 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.
- key fingerprint — A short hash of a public key, such as SHA256:abc..., that people can compare to confirm two keys are the same.
Taught in
- SSH: The Protocol, And The Host Key You Accept — Linux Fundamentals & Systems Administration