Email and Cyber Security · #72
Online SSH Public Key Fingerprint and Inventory
Decodes SSH public keys in the browser and produces the same SHA256 fingerprint as ssh-keygen -lf.
- Data is processed in your browser and not sent to a server
- Export: CSV
Tool
What does this tool do?
authorized_keys files on servers accumulate traces of former staff, old automation and copied keys. Knowing who accesses with which key requires each key's type, length and fingerprint. The tool decodes the lines, flags weak (DSA, RSA below 2048 bits) and duplicate keys and exports the inventory as CSV.
How to use it
- Paste the content of
~/.ssh/authorized_keysor.pubfiles; options (from=, command=) are supported. - Press Run; download the inventory as CSV.
Fields
- Public keys
- One key per line. Do not paste private keys.
Worked example
| Input | Value |
|---|---|
| Public keys | |
Expected result: 4 keys: ayse@laptop ed25519; backup@srv01 RSA 3072; deploy@ci RSA 2048 (restricted with from=); an uncommented RSA 1024 key in red.
If the owner of the uncommented 1024-bit key cannot be identified, remove it. The RSA 2048 key is acceptable for now, but move to ed25519 at renewal. Compare fingerprints with ssh-keygen -lf authorized_keys on the server.
Second scenario
| Input | Value |
|---|---|
| Public keys | |
Expected result: The same ed25519 key was added twice with two different comments: duplicate warning.
Method and assumptions
The key type and Base64 blob are read; the type name inside the blob must match the line. RSA length comes from the modulus (n), ECDSA from the curve, ed25519 is a fixed 256 bits.
Fingerprint: SHA256: + Base64(SHA-256(blob)) without padding (OpenSSH format).
Using the result and troubleshooting
Remove unknown and weak keys, add from= and command= restrictions for service accounts. Tie the inventory to your leaver process.
Limits and common mistakes
- Legacy MD5 fingerprints are not calculated. Signature and validity of certificate key types (-cert-v01) are not decoded.
Frequently asked questions
Why is the fingerprint the same as ssh-keygen?
Both use the same definition: SHA-256 of the key blob, unpadded Base64. If they differ, the line was probably damaged when copying.
Related tools and service
- Certificate Fingerprint and File HashCalculates hashes of a file, text or certificate on your device and compares them with an expected value.
- Password and Passphrase GeneratorGenerates passwords on your device with cryptographic randomness; nothing is sent or stored.
Related service: Privileged Access Management