SSH public key fingerprint
Read the type, comment and SHA-256 fingerprint of an OpenSSH public key.
Runs in your browser. Your input is not uploaded.
What it does, how to use it, and questions
What it does
An OpenSSH public key is one line: the type, the Base64 key data, and an optional comment. ssh-keygen -lf prints a SHA-256 fingerprint of that key data. This tool does the same calculation.
Private keys are refused and not parsed. A public key is not a secret, but a private key pasted into a browser should be treated as exposed.
How to use it
- Paste one public key line, starting with
ssh-ed25519,ssh-rsaorecdsa-sha2-…. - Read the type, bit length, comment and fingerprints.
- Compare the SHA-256 line with
ssh-keygen -lf.
Example
Input
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl
Output
SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU
Things to watch for
- Remove
authorized_keysoptions such ascommand=from the front of the line. The type has to come first. - The MD5 fingerprint is the older colon-separated form. Prefer SHA-256.
- This does not check that a server will accept the key. It only reads the line.
Questions
- How do I check this against ssh-keygen?
- Save the line as
key.puband runssh-keygen -lf key.pub. The SHA256: value should match. - What if I pasted a private key?
- The tool refuses to read it. If the key is a real one, treat it as exposed and replace it.
- Ed25519 or RSA?
- Ed25519 is the usual choice for a new key. It is shorter and the fingerprint is still SHA-256 of the key blob.
- Is the key uploaded?
- No. The fingerprint is computed in this page.