Introduction
known_hosts is the file in which OpenSSH keeps the
public keys of SSH servers, so that a client can check it is talking to the same machine as before. The
file has a fixed name and no extension. See also
authorized_keys and .pub.
Structure
A text file with one key per line: an optional marker (@cert-authority or
@revoked), a comma-separated list of host name patterns, the key type, the key in base64 and an
optional comment. A hashed host name begins with |.
Not described
Known, not yet covered
- Reference: the layout of the format is not yet described here: the pattern rules, the hashed form and the key types are set out in the OpenSSH manual pages.
- Viewer: the site has no viewer for this format.
Links
Software
- OpenSSH – the SSH suite that writes and reads the file
Reference
- sshd(8) – OpenBSD manual page with the file format