An SSH host key is a cryptographic key pair generated on and belonging to an SSH server. Its purpose is to let the server prove its identity to connecting clients: when a client connects, the server presents its public host key, and the client checks it (e.g., against known_hosts or a fingerprint) to confirm it is talking to the genuine host rather than an impostor performing a man-in-the-middle attack. Host keys are separate from user keys, which are used to authenticate a user rather than a host, and they are not sent by clients, not used as a signing CA for user keys, and not used by background services to initiate outbound connections.
Community Discussion