key fingerprint
A short hash of a public key, such as SHA256:abc..., that people can compare to confirm two keys are the same.
In more detail
Compare an SSH host key's fingerprint with one obtained through an independent channel, such as the provider's console, before accepting it. ssh-keygen -lf shows the fingerprint of a key file.
Example
Fingerprints are what sshd logs for public key logins and what ssh-keygen prints.Related terms
- host key — The key pair an SSH server uses to prove its identity to every client that connects.
- hash — A short fixed-length fingerprint calculated from data, which changes completely if even one byte of the data changes.
- 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.
- SSH key — A key pair used to log in over SSH: the private key stays on your machine and the public key is added to the server account.
- ssh-keygen — The OpenSSH tool for creating SSH keys and showing their fingerprints.
- certificate pinning — Making a client accept only one specific certificate or public key, identified by its hash, instead of anything a trusted authority signs.
Taught in
- SSH: The Protocol, And The Host Key You Accept — Linux Fundamentals & Systems Administration
- Tracking Advanced Persistent Threats & Profiles — Security Operations & Threat Hunting (SOC)
- Containment & Eradication: Host, Net & Identity — Security Operations & Threat Hunting (SOC)
- Recovery & System Validation Testing — Security Operations & Threat Hunting (SOC)
- Workload Identity — Application Security & Threat Modeling for Engineers
- TLS And The Handshake — Application Security & Threat Modeling for Engineers