SSH Key Format Checker
Audit a whole authorized_keys or known_hosts file -- per-line validation, option/marker parsing, duplicate detection, weak-key and unrestricted-access warnings.
What this tool does
Audits an entire authorized_keys or known_hosts file line by line -- not just a single key. For a single key's deep decode (fingerprints, randomart, PEM conversion), use this site's Public Key Format Checker; this tool is for the multi-line files those keys actually live in, and the mistakes that only show up across a whole file.
authorized_keys: options and what they mean
Each line can carry options before the key type
that restrict what that key is allowed to do once authenticated --
command= (force a single command), from=
(restrict source IPs/hosts), no-pty,
no-port-forwarding, no-agent-forwarding,
no-X11-forwarding, no-user-rc,
permitopen=, restrict (deny everything not
explicitly re-enabled), principals=, and
cert-authority. A key with none of these has full,
unrestricted access -- flagged here as worth a second look, not
necessarily wrong.
known_hosts: hashed hosts and markers
A known_hosts line can list one or more hostname/IP patterns in
plain text, or a single hashed hostname
(|1|salt|hmac, so a stolen file doesn't reveal which
hosts you connect to) -- both are recognized and labeled. The
@cert-authority and @revoked line markers
are also parsed and shown.
Duplicate and weak-key detection
Identical key blobs appearing on more than one line are flagged
as duplicates -- harmless but usually accidental. ssh-dss
(DSA) keys are flagged deprecated; RSA keys under 2048 bits are
flagged weak -- the same strength bar used across this site's other
key tools.
Per-line validation
Every line is decoded independently -- a single malformed or truncated line is reported for that line specifically rather than failing the whole file, since a 200-line authorized_keys file with one bad entry is a very different problem than a completely broken paste.
Cleaned export
Download just the lines that actually decoded successfully -- useful for dropping a cleaned, de-duplicated file back onto a server after an audit.
Why this is separate from the Public Key Format Checker
That tool goes deep on one key -- fingerprints, randomart, format conversion. This one goes wide across a whole file -- the view an administrator actually has when reviewing who has access to a server, or whether a known_hosts file is clean.
Privacy
Every line is parsed entirely in your browser. Nothing is uploaded.