KNOWNHOSTS
Generated by scripts/gen-format-pages.py from docs/data/format-metadata/, FILE_FORMATS.csv and docs/formats-master.csv. Do not edit by hand: change the source, then run the script.
KNOWN_HOSTS
SSH known_hosts Preview.
At a glance
| Purpose | An SSH known_hosts file: host patterns with their public keys. |
| Extensions | .known_hosts |
| Poka parser | poka-known-hosts |
| Viewer | poka-table-viewer |
| Depth tier | Parser with a shared viewer (see Depth tiers) |
| Breadth tier | B2 Broad (see Breadth tiers) |
How much Poka reads
B2 Broad. The common content of the current and the common older versions is decoded. Some named features or versions are not, and are listed.
Confidence: medium (the reviewer read the code). Basis: Reviewed 2026-10-26: read parsers/poka-known-hosts/src/main.rs (135 lines) and plugin.json. No unit tests or tests/samples.rs; the corpus has no .known_hosts and .known-hosts sample. Covers .known_hosts and .known-hosts. The table lists every entry with host pattern (hashed hosts marked), key type, key length and comment; the key itself is not shown. Judgement: B2: every entry is shown; the gaps are limits, redaction by design and fields left raw.
What Poka does not read
- Keys are shown by length only, with no fingerprint (judgement from the code)
- Hashed host names are not reversible (by design)
- @cert-authority and @revoked markers are not shown separately (judgement from the code)
- Only the first 2,000 entries are listed
Libraries
Libraries Poka uses or has assessed for this format, with the status, licence and language the registry records.
- ssh-key (candidate; Apache-2.0 OR MIT; Rust; https://docs.rs/ssh-key/latest/ssh_key/known_hosts/index.html) — RustCrypto crate; known_hosts module (KnownHosts, Entry, HostPatterns, Marker) needs the alloc feature; docs page shown was version 0.6.7.
Sources
- parsers/poka-known-hosts/src/main.rs
- parsers/poka-known-hosts/plugin.json