
SSH key fingerprint
Decode an OpenSSH public key line and show its type, size, and SHA256/MD5 fingerprints in ssh-keygen -l format.
SSH key fingerprint decodes one OpenSSH public key line, ssh-ed25519, ssh-rsa, ssh-dss or any ecdsa-sha2-* curve, into its type, bit size and comment. It prints both the SHA256 and the legacy MD5 fingerprint, in the exact format ssh-keygen -l shows. A declared key type that does not match the type inside the blob is refused, and so is any unsupported key type.
Questions
What key types are supported?
ssh-ed25519, ssh-rsa, ssh-dss and any ecdsa-sha2-* curve.
What fingerprints does it print?
Both SHA256 and the legacy MD5, plus the exact one-line format ssh-keygen -l shows.
What happens if the declared type does not match the key blob?
The tool refuses, naming both the declared type and the type encoded inside the blob.
What if the key type is not one of the four supported families?
The tool refuses, naming the unsupported type.
Does it show the key comment?
Yes, the third field on the line, or '(none)' if there is not one.