The short version

  • RFC 10042 defines three Post-Quantum/Traditional hybrid key-exchange methods for SSH, running ML-KEM alongside classical ECDH and folding both shared secrets into a single SSH key derivation.
  • That hardens one key-establishment event. It does not decide whether the client should trust the host key, who the user is, what the account may do, or whether the command actually ran.

Somewhere in a procurement deck this quarter, a slide says “quantum-safe SSH” and the room nods. The slide is not lying. It is just answering a far smaller question than the room believes. RFC 10042 is narrower, sharper and more useful than the slogan: it defines hybrid key exchange for the SSH transport layer, where the client and server run a classical ECDH-style exchange alongside ML-KEM and derive one shared secret from both. The aim is precise. If either component exchange holds up under the document’s assumptions, the hybrid is meant to keep that protection against traffic recorded today and decrypted later.

Where the boundary actually sits

The packet shape gives the game away. Instead of the ordinary key-exchange initial message, the client sends SSH_MSG_KEX_HYBRID_INIT carrying C_INIT — a post-quantum ML-KEM public key stitched to a classical public key. The reply carries the server public host key K_S, then S_REPLY: an ML-KEM ciphertext stitched to the server’s classical public key, plus a signature over the exchange hash. RFC 10042 names the two resulting secrets K_PQ and K_CL, then derives K by hashing their prescribed fixed-length byte encodings.

None of that is decorative. The server must check the length of the incoming composite before encapsulating; the client must check the returned composite before decapsulating. A wrong length or a failed decapsulation earns a key-exchange-failed disconnect. Each side generates fresh ephemeral ECDH and ML-KEM keypairs per connection, and the spec forbids reusing ML-KEM ciphertext randomness. Fixed-length encodings close off a variable-length-secret path that could leak a timing signal. These are real controls — over one key-establishment event.

Why the host-trust decision survives the upgrade

They do not eliminate the host-trust decision. SSH’s architecture already separates transport-layer server authentication from user authentication. The host-key signature binds the exchange hash to the server’s public host key; the client must still decide whether that key really belongs to the host it meant to reach. RFC 4251 describes local host-name-to-key databases and certificate-based alternatives. RFC 4253 describes the client verifying K_S against a certificate or local database — while permitting an unchecked acceptance that stays vulnerable to active attacks. RFC 10042 reuses that surrounding arrangement. It supplies no new provenance system for K_S, chooses no trust roots, and converts no offered key into an organisational identity.

Method names are inventory, not evidence

Naming has the same ceiling. RFC 10042 registers mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256. An inventory can truthfully record that an implementation knows a name, or that a client offered one in SSH_MSG_KEXINIT. Neither observation proves the peer offered a compatible choice, that the selected exchange completed, that the host key was accepted under local policy, or that the channel ever reached a user-authentication request. The SSH parameter registry keeps key-exchange-specific message numbers apart from SSH_MSG_USERAUTH_* numbers for a reason: different stages, different questions.

The exchange hash is valuable because it is bounded

It incorporates the two identification strings, both KEXINIT payloads, K_S, the client and server hybrid messages, and the derived K. That binds the key-establishment transcript into SSH’s existing derivation process. It contains no local administrator’s rule for a user, no command request, no account mapping, no consequence. RFC 4251 puts the choice of accepted authentication methods — per user — in server local policy, which must then enforce the access it granted. A hybrid KEX cannot make that later decision merely because it arrives first.

Six records, six different jobs

A security team may retain a configuration declaring a hybrid method, an offer/selection log, an exchange-failure counter, a host-key verification record, a user-authentication result and a channel-action record. They are not interchangeable. Configuration shows readiness; a captured, verified transcript shows one particular key-establishment event; host-key evidence supports a trust judgment; authentication and authorisation records describe later local decisions. Pooling them in a report helps only if each keeps its own evidentiary role.