SSHFP Record
SSH Fingerprint
- Type code
- 44
- Status
- In use
- Defined in
- RFC 4255
What the SSHFP record is for
When an SSH client first connects to a server it has to decide whether to trust the host key. SSHFP lets the server operator publish fingerprints of the host keys in DNS, at the host name. A client that supports it (OpenSSH with VerifyHostKeyDNS) compares the key the server presents with those fingerprints.
A host usually has one record per key type and fingerprint type. RFC 4255 says the records must be validated with DNSSEC before a client trusts them on their own; without validation they are at most a hint.
ssh-keygen -r <hostname> prints SSHFP records for the host keys on a machine.
Wire format and fields
| Field | Size | Meaning |
|---|---|---|
| algorithm | 8 bits | The host key algorithm: 1 RSA, 2 DSA, 3 ECDSA (RFC 6594), 4 Ed25519 (RFC 7479), 6 Ed448 (RFC 8709). |
| fp type | 8 bits | The fingerprint hash: 1 SHA-1, 2 SHA-256 (RFC 6594). |
| fingerprint | variable | The hash of the public key blob, in hex. |
Zone file syntax
<host> <ttl> IN SSHFP <algorithm> <fp type> <fingerprint (hex)>
Example
The SSHFP records at master.debian.org, fetched from live DNS on 27 November 2026:
master.debian.org. 587 IN SSHFP 4 1 BB3E0647AAAD27469C1BD0170BDB0CA1472E4CBC master.debian.org. 587 IN SSHFP 4 2 0555B8DC3FE0C3236FCEF64C45A468678339B72F690C1D927C5C814E 10F08FBC master.debian.org. 587 IN SSHFP 1 1 BC3F0910A4FDED0AE5584D8775CA47DE9263E89F master.debian.org. 587 IN SSHFP 1 2 A14497AC5B5050E4E78055D08C33F1912F1367F92B7CEF9C6F6C8EDF D8B0D839
Ed25519 (4) and RSA (1) host keys, each with a SHA-1 (1) and SHA-256 (2) fingerprint.
Common mistakes
- Publishing SSHFP in an unsigned zone and expecting it to secure connections. Without DNSSEC validation OpenSSH does not trust the records by themselves.
- Reinstalling a server or regenerating host keys without updating SSHFP, so clients see a mismatch and warn or refuse.
- Relying on a local resolver that does not validate or does not pass the AD bit to the client. OpenSSH then treats the fingerprints as insecure even when the zone is signed.
Specifications
- RFC 4255: Using DNS to Securely Publish Secure Shell (SSH) Key Fingerprints
- RFC 6594: Use of the SHA-256 Algorithm with RSA, Digital Signature Algorithm (DSA), and Elliptic Curve DSA (ECDSA) in SSHFP Resource Records (Adds the SHA-256 fingerprint type and the ECDSA algorithm.)
- RFC 7479: Using Ed25519 in SSHFP Resource Records (Adds algorithm 4, Ed25519.)
- RFC 8709: Ed25519 and Ed448 Public Key Algorithms for the Secure Shell (SSH) Protocol (Adds algorithm 6, Ed448.)
- IANA DNS Resource Record (RR) TYPEs registry: type code and status
Related record types
Domain Intelligence APIs
Get started with our easy-to-use API docs.