Skip to content
gohacks.dev
Tooling

SSH Key Fingerprint

Show the SHA256 and MD5 fingerprints, key type and size of SSH public keys from id_ed25519.pub, authorized_keys or known_hosts.

Free · No sign-up · Your inputs stay in your browser

Input

Show SSH key fingerprints

Output

0 keys

TypeSHA-256MD5Comment

SHA256: followed by unpadded base64 is what ssh-keygen -lf prints and what ssh shows when it first meets a host; the MD5 form is what older OpenSSH (before 6.8) and some cloud consoles still show. Compare the fingerprint ssh asks you to accept against one obtained another way, never by reading it from the same connection.

Runs in this browser. Nothing you paste is sent to a server.

Verifying a host

When ssh connects to a new server it shows the host key's SHA256 fingerprint and asks you to confirm. Comparing it against the fingerprint obtained another way (from the provider's console output, or ssh-keygen -lf /etc/ssh/ssh_host_ed25519_key.pub run on the server) is what stops a man-in-the-middle on first connection. The ssh-keygen manual documents the formats.

Auditing authorized_keys

Pasting an authorized_keys file lists every key that can log in, with its fingerprint and comment, which makes it easy to spot a key that should have been removed when someone left.

Share

Frequently asked questions

Why do GitHub and my terminal show different fingerprint formats?
Older OpenSSH and some interfaces show MD5 as hex pairs; OpenSSH 6.8 and later default to SHA256 in base64. Both identify the same key.
How do I get a server's host key fingerprint without connecting?
ssh-keyscan host | ssh-keygen -lf - prints the fingerprints of the keys the server offers. Compare them with what the server's console reports.
Is what I paste sent anywhere?
No. The tool runs entirely in your browser with JavaScript. Nothing you type or paste is sent to our server or stored.

Keep planning

Similar tools