rescueshell Start trial

SSH key fingerprint checker

Paste an OpenSSH public key, a known_hosts line or a line from ssh-keygen -lf. The page shows the key type, its size and the SHA256: fingerprint in the form OpenSSH prints. Paste a second key or fingerprint and it tells you whether the two match.

Nothing you type leaves this page: the checker makes no request, sets no cookie and stores nothing. It does not connect to any host, so it cannot tell you whether a server really has the key you pasted. The site's usual cookie-free page count still loads, as on every page, and it never includes what you type.

What the fingerprint is

A fingerprint is a short hash of the public key, so two people can compare it without reading out the whole key. For the SHA256: form, OpenSSH takes the SHA-256 hash of the decoded key and writes it in base64 without the trailing = padding. It is the same text that ssh-keygen -lf prints and that ssh shows when it asks whether to continue connecting to a new host.

The comment at the end of a key line, and the host names at the start of a known_hosts line, are not part of the key and do not change the fingerprint. Two lines with different comments can hold the same key.

The MD5 form

Older OpenSSH versions and some devices and web consoles still show a fingerprint as 16 pairs of hex digits separated by colons. That is the legacy display you get from ssh-keygen -E md5 -lf. This page shows it for keys you paste so you can match such a screen, not because it is the one to prefer: use the SHA256: form where you have a choice.

What a match tells you

A match means the two pastes hold the same key. It does not say where either one came from. If both came from the same place, for example a relay or a web page you are checking, a match proves nothing about the host. Compare against a fingerprint that reached you another way, such as one read at the device's own console. This page does not connect to a host and does not replace ssh-keyscan; it only reads what you paste.

A fingerprint pasted on its own cannot show a key type or size beyond what its line says, because the hash does not contain them. When you paste a SHA256 fingerprint and an MD5 fingerprint, they cannot be compared with each other. Paste the full key instead and both forms are computed.

Where this fits

If ssh has just printed a host key warning, the guide to a changed host key walks through what to compare and what to remove. If ssh is asking whether to trust a host for the first time, the same comparison applies before you answer.

Host keys matter most when a device is reached through a tunnel, because the name in known_hosts is then a port or an alias and not the device itself. The jump host guide covers that setup, and the ssh_config generator writes the known_hosts line from a key. If a line will not parse, or you want to know what kind of line it is, the known_hosts and authorized_keys line checker reads the line itself. More free tools are on the tools page.

Or skip the jump host

RescueShell is a hosted relay: the device dials out over HTTPS, nothing comes in, and you open the shell from a browser, so there is no tunnel whose host key you have to track by hand. The first device is free to try with no card, for 30 days from when it connects, not from when you sign up. Start a trial.