The post-quantum key exchange specifications for SSH explained

RFC 10042 and RFC 9941 are the IETF documents that define the hybrid post-quantum key exchange methods SSH implementations offer. This page explains what each specifies, who wrote them, and what to check in your cipher lists.

On this page

Which SSH key exchange specifications you are being pointed to and why

If a vendor, tender or auditor has referenced post-quantum key exchange for SSH, two documents are the most likely starting points: RFC 10042, an Informational RFC published in August 2026 by the IETF sshm Working Group, and RFC 9941, an Informational RFC published in April 2026 by Markus Friedl, Jan Mojzis and Simon Josefsson. RFC 10042 defines three hybrid methods that pair ML-KEM with an elliptic curve or X25519, while RFC 9941 defines one hybrid method that pairs sntrup761 with X25519. Both are Informational, which means they describe a method for interoperability and do not themselves impose a requirement on any organization.

The people who meet these documents are SSH server and client implementers, the teams that maintain the cipher lists in OpenSSH-based or other SSH software, and the platform and network engineers who configure those lists on bastions, file transfer servers and automation endpoints. Procurement and vendor-risk reviewers meet them when a questionnaire asks which hybrid methods a product offers. The useful question for these readers is which method name appears in the product's configuration, and whether the vendor's documentation states the version and the component it applies to. Neither RFC on its own shows that a product is compliant, certified or quantum-safe.

For the reader's next step, pull the list of key exchange methods the software actually offers, then match each name against the registry entries and the RFC text. RFC 10042 names mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256, and RFC 9941 names sntrup761x25519-sha512, with the alias sntrup761x25519-sha512@openssh.com that the RFC recommends accepting. Confirm with the vendor which version introduced each method, since the RFCs do not give product version details beyond acknowledgements. The sibling pages on TLS and ML-KEM cover different protocols, so keep the SSH method names separate from TLS group names when reviewing a cipher inventory.

RFC 10042 and RFC 9941 at a glance

This table compares the two SSH key exchange documents covered on this page, along with RFC 9794, which supplies the shared terminology both use. Read each column as one document, and check the method names against the cipher list your SSH implementation offers, since the names are what appear in configuration. The main takeaway is that RFC 10042 defines three hybrid ML-KEM methods, while RFC 9941 defines one hybrid method built on sntrup761.

AttributeRFC 10042RFC 9941
TitlePost-Quantum/Traditional Hybrid Key Exchange with the Module-Lattice-Based Key-Encapsulation Mechanism for Use in SSHSecure Shell (SSH) Key Exchange Method Using Hybrid Streamlined NTRU Prime sntrup761 and X25519 with SHA-512
NumberRFC 10042RFC 9941
StatusInformationalInformational
Publication monthAugust 2026April 2026
Authors and affiliationsP. Kampanakis (AWS), D. Stebila (University of Waterloo), T. Hansen (AWS)Markus Friedl (OpenSSH), Jan Mojzis (TinySSH), Simon Josefsson
Working group or streamIETF sshm Working Group, previously draft-ietf-sshm-mlkem-hybrid-kexNot stated in the sources listed on this page
Method names definedmlkem768nistp256-sha256, mlkem1024nistp384-sha384, mlkem768x25519-sha256sntrup761x25519-sha512, with the alias sntrup761x25519-sha512@openssh.com recommended
IANA registrationAll three method names registered with OK to Implement set to SHOULDMethod registered with OK to Implement set to SHOULD
Terminology referenceFollows RFC 9794 terminologyCited by RFC 10042 as the terminology source (RFC 9794: Informational, June 2025, IETF stream)

What the SSH hybrid key exchange methods specify

RFC 10042, Post-Quantum/Traditional Hybrid Key Exchange with the Module-Lattice-Based Key-Encapsulation Mechanism for Use in SSH, is an Informational RFC published in August 2026 by the IETF sshm Working Group. It was previously draft-ietf-sshm-mlkem-hybrid-kex. P. Kampanakis and T. Hansen (AWS) and D. Stebila (University of Waterloo) wrote it. It defines three key exchange methods that combine ML-KEM with a traditional key agreement, so a session stays protected if either component holds up.

  • Method names: mlkem768nistp256-sha256 (ML-KEM-768 with NIST P-256, SHA-256), mlkem1024nistp384-sha384 (ML-KEM-1024 with NIST P-384, SHA-384) and mlkem768x25519-sha256 (ML-KEM-768 with X25519, SHA-256). IANA registered all three in the Key Exchange Method Names registry with OK to Implement set to SHOULD.
  • Shared secret: The two secrets are concatenated and hashed, K = HASH(K_PQ || K_CL), where K_PQ is the ML-KEM secret and K_CL is the ECDH or X25519 secret. K is then encoded as an SSH string, so the result feeds the normal SSH key derivation.
  • Messages: The client sends SSH_MSG_KEX_HYBRID_INIT (message number 30) carrying C_INIT, and the server answers with SSH_MSG_KEX_HYBRID_REPLY (message number 31) carrying S_REPLY. These are the messages to look for in a packet capture of a hybrid session.
  • Checks: The server checks the length of C_INIT and performs the FIPS 203 encapsulation key checks on the client's ML-KEM key. The client checks the length of S_REPLY. On failure, the side that detects it disconnects with SSH_DISCONNECT_KEY_EXCHANGE_FAILED.
  • Randomness: Each connection must use fresh ephemeral ECDH and ML-KEM key pairs, and implementations must not reuse randomness when generating ML-KEM ciphertexts.

The RFC's acknowledgements say Damien Miller and Markus Friedl implemented some of these methods in OpenSSH, but the RFC gives no version or support details. Check your own SSH build's release notes and its list of offered methods before assuming a given name is present. The RFC also says its message abstraction, key derivation and exchange hash input align with RFC 9941, and it follows the terminology of RFC 9794.

Who these SSH documents apply to and who they do not address

Both RFC 10042 and RFC 9941 are Informational RFCs. That status means they describe methods that an SSH implementation may offer; they do not impose requirements on anyone by themselves. IANA has registered the method names from both documents in the Key Exchange Method Names registry with OK to Implement set to SHOULD. A SHOULD entry signals that implementers are encouraged to support the method, but it is not a mandate, and the registry entry does not oblige an organization to enable it. Reading these documents as binding policy for a commercial network would overstate what they say.

Any obligation to deploy these methods comes from the organization's own security policy, a contract with a customer or regulator, or a rule that applies to its sector. Before changing a cipher list, check whether an internal standard, a procurement requirement or a federal contract names a particular post-quantum key exchange. If none does, the decision is a risk and engineering choice that the team should document. The NSA's guidance and CNSA 2.0 apply to national security systems and are not binding on commercial organizations on their own, so an organization should confirm with its contracting or compliance owner whether any such requirement reaches its systems.

The sources do not say which vendors ship these methods beyond one acknowledgement. RFC 10042 says Damien Miller and Markus Friedl implemented some of its methods in OpenSSH, but it gives no version numbers or support details. RFC 9941's acknowledgements describe OpenSSH and TinySSH history for sntrup761x25519-sha512, but they are not a support matrix. To learn which release of a given SSH server or client offers a method, check that vendor's documentation or run the software's own algorithm listing, and treat any version you rely on as something to verify in your environment.

Which method names and identifiers an engineer will meet in a cipher list

A cipher list shows key exchange method names that come from two different RFCs and a few alias or message identifiers. Each name below tells you which document defines it, and what to check on the server or client you run.

mlkem768nistp256-sha256

This method pairs ML-KEM-768 with NIST P-256 and hashes the result with SHA-256. RFC 10042 defines it, and IANA registered it with OK to Implement set to SHOULD. Check whether your server or client lists this exact string, since a near match such as a different hash suffix is a different method. Confirm the full string with your vendor before you rely on it in a policy.

RFC 10042 text

mlkem1024nistp384-sha384

This method pairs ML-KEM-1024 with NIST P-384 and uses SHA-384. It is the higher parameter option among the three RFC 10042 methods. Look for it in the cipher list when you want the larger ML-KEM variant, and confirm with the vendor that the build you run offers this exact name.

RFC 10042 text

mlkem768x25519-sha256

This method pairs ML-KEM-768 with X25519 and uses SHA-256. It is the X25519 variant of the RFC 10042 family, so its key exchange includes an X25519 component alongside ML-KEM. When you audit a server, check whether this name appears, and verify the exact string against the vendor's documentation for your version.

RFC 10042 text

sntrup761x25519-sha512

This method combines sntrup761 with X25519 and hashes with SHA-512. RFC 9941 defines it, not RFC 10042, so it comes from a separate document with its own Informational status. The sntrup761 component is a different quantum-resistant KEM from ML-KEM. Check your cipher list for this name and confirm with the vendor which build offers it.

RFC 9941 text

The @openssh.com alias

The name sntrup761x25519-sha512@openssh.com is an alias that RFC 9941 recommends implementations also accept. A cipher list may show the alias instead of the plain name, or both. Treat the two as the same method only for the purposes RFC 9941 describes, and verify support on your specific OpenSSH or vendor build.

RFC 9941 text

Message numbers 30 and 31

SSH_MSG_KEX_HYBRID_INIT (30) and SSH_MSG_KEX_HYBRID_REPLY (31) are the message identifiers RFC 10042 uses for its hybrid methods. Packet captures and protocol traces show these numbers when a hybrid exchange runs. If you see them, you are looking at the RFC 10042 message flow, and you can use them to confirm which exchange a connection negotiated.

RFC 10042 text

What to check in SSH configurations and ask vendors because of these documents

This sequence turns the two SSH key exchange RFCs into a checked inventory of which methods each server and client offers, which versions implement them, and what each vendor has documented. The output is a findings record that auditors and protocol owners can review against the specifications.

  1. Read both RFCs before touching configurations

    Protocol engineers read RFC 10042 and RFC 9941 in full, paying attention to the method names, message numbers, size values and the mandatory checks each document places on the server and client. RFC 10042 covers the three ML-KEM hybrid methods and RFC 9941 covers the sntrup761x25519-sha512 method, so both are needed before any configuration review. The step is done when the team can state, for each method, which RFC defines it, whether the implementation should accept an alias, and what failure behavior the RFC requires. Record the RFC numbers and their Informational status in the review file so later readers see the same source.

  2. Inventory the key exchange methods each endpoint offers

    The team lists every SSH server and client in the estate and captures the key exchange methods each one offers, typically by reading the server's configuration file and by querying each client's supported algorithm list. The inventory should flag any entry matching one of the three RFC 10042 names (mlkem768nistp256-sha256, mlkem1024nistp384-sha384, mlkem768x25519-sha256) or the RFC 9941 name sntrup761x25519-sha512, along with the alias sntrup761x25519-sha512@openssh.com where it appears. Each row should record the host, the role (server or client), the software name, and the exact method strings found. The step is complete when every endpoint has a row, including endpoints where no post-quantum method appears, so the gaps are visible.

  3. Confirm exact method names and alias support with the vendor

    For each product in the inventory, the team asks the vendor to confirm the exact method strings it implements and whether it accepts the RFC 9941 alias with the @openssh.com suffix. The sources state that the RFC 9941 alias is recommended, but they do not say which products accept it, so this must come from vendor documentation or a written answer. Name matching matters because a client and server that do not share an exact string will not negotiate the method. The step is done when each vendor has responded in writing or the response is recorded as unavailable.

  4. Check the implementing version for each method

    The RFCs do not give version or support details for specific releases, so the team must identify the version of each SSH implementation that provides each method. For OpenSSH, the team checks the release notes and the vendor's documentation for the version that introduced each method, and the same for any other implementation in the inventory. Where a method appears only in a development build or a patch, that should be recorded as such. The step is done when every method in the inventory is tied to a specific version and source, and any method with no confirmed version is marked as unverified.

  5. Verify the fresh-randomness and length-check behavior is documented

    RFC 10042 requires fresh ephemeral ECDH and ML-KEM key pairs for each connection, requires that ML-KEM ciphertext randomness is never reused, and requires the server to check the C_INIT length and the FIPS 203 encapsulation key, with the client checking the S_REPLY length and disconnecting with SSH_DISCONNECT_KEY_EXCHANGE_FAILED on failure. The team asks each vendor to point to documentation or a stated test that shows these behaviors, and records whether the vendor has provided that evidence. The sources do not say how any vendor implements these checks, so the answer must come from the vendor's own material or from the team's own testing. The step is done when each vendor's response is filed against the specific requirement.

  6. Record findings in a form auditors can review

    The team compiles the inventory, version mapping, vendor answers and behavior evidence into one findings record that names each RFC, each method string, each endpoint, the version and the source for each claim. Gaps, such as a method with no confirmed version or a vendor that did not answer, are listed as open items with an owner. The record should cite the RFC numbers and their publication status exactly as given in the standards, and it should state plainly that compatibility between versions has not been confirmed unless the vendor said so. The step is complete when the record is saved with a date and reviewed by the protocol owner, ready for an auditor to trace each finding back to its source.

Status of RFC 10042 and RFC 9941 and what has been published since

RFC 9941 was published in April 2026 as an Informational RFC by Markus Friedl (OpenSSH), Jan Mojzis (TinySSH) and Simon Josefsson. It defines the method sntrup761x25519-sha512, which combines the sntrup761 KEM with X25519 and derives its key with SHA-512. Its acknowledgements trace the method's history: TinySSH added the predecessor in 2018, OpenSSH implemented it in 2019, sntrup761 replaced sntrup4591761 in OpenSSH in 2020, and the method became OpenSSH's default key exchange in 2022. The RFC registers the method with OK to Implement set to SHOULD, and recommends that implementations also accept the alias sntrup761x25519-sha512@openssh.com. If you run OpenSSH, confirm the release you deploy against the RFC text and your own configuration, since the sources do not tie specific release numbers to the RFC.

RFC 10042 was previously draft-ietf-sshm-mlkem-hybrid-kex and was published as an Informational RFC in August 2026 from the IETF sshm Working Group. It defines three methods that pair ML-KEM with a traditional component: mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256. IANA registered all three with OK to Implement set to SHOULD. The RFC's acknowledgements say Damien Miller and Markus Friedl implemented some of these methods in OpenSSH, but give no version or support details, so check the OpenSSH release notes for the methods you need. Its text says the sntrup761x25519-sha512 method in RFC 9941 uses a different quantum-resistant KEM, while sharing its message abstraction, key derivation and exchange hash input.

A review-group statement dated 30 November 2026 describes a quantum, quasi-polynomial-time attack on some module-lattice problems. It says that for ML-KEM and ML-DSA the attack needs "vastly more computation than the best previously known attacks." Its advice is to keep migrating, use the highest security level, use hybrids built on different mathematical foundations, and design for fast replacement. For SSH, that favors keeping a non-lattice component in the negotiated method list, such as the sntrup761 method in RFC 9941 or a classical curve, and planning for method changes.

The sources listed for this topic do not record any further errata or revisions for RFC 10042 or RFC 9941 after their publication dates. Before you finalize an SSH cipher list, check the RFC Editor's pages for both documents and the OpenSSH release notes for the methods you plan to enable, and confirm the status of each against the sources your compliance team has accepted.

Common misreadings of the SSH key exchange RFCs

The SSH hybrid key exchange RFCs are easy to over-read. Each card below corrects one common misreading, so engineers reading cipher lists and procurement teams reviewing vendor claims can check what the documents actually establish.

A listed method is not a shipped method

RFC 10042 and RFC 9941 define methods and register their names with IANA, with OK to Implement set to SHOULD. That registration says what the specification describes, not which products support it. The RFC acknowledgements say OpenSSH implemented some of these methods, but they give no version or support details. Check the release notes and configuration documentation of each SSH product and version you run before assuming a method is offered.

RFC 10042 text

SSH and TLS method names are not interchangeable

The SSH methods and the TLS 1.3 groups share ML-KEM and X25519 components, but they are separate specifications with separate names, message formats and key derivation. RFC 10042 says its exchange hash input aligns with RFC 9941 for SSH, and it does not say that it aligns with TLS. Do not treat an SSH method name as evidence that a TLS group of the same name is offered, or the reverse. Confirm each protocol's cipher list separately.

RFC 9954 text

The NSA does not require these methods

The methods in these RFCs are IETF documents, and nothing in the sources links them to a requirement from the NSA or CNSA 2.0. CNSA 2.0 applies to national security systems, and it is not binding on commercial organizations. A commercial organization may use it as a reference, and it may meet it through a contract with a federal customer. Ask any federal customer for the specific clauses that apply to your systems before you assume that an SSH method is required.

NIST FIPS 203

The review-group statement does not break ML-KEM

The 30 November 2026 review-group statement describes a quantum, quasi-polynomial-time attack on some module-lattice problems. It says that for ML-KEM and ML-DSA the attack needs vastly more computation than the best previously known attacks. Its advice is to keep migrating, use the highest security level, use hybrids built on different mathematical foundations, and design for fast replacement. Treat that as guidance on planning and agility, not as evidence that the SSH methods are broken.

NIST FIPS 203

Questions engineers ask about the SSH post-quantum key exchange RFCs

Is RFC 10042 a final standard?

RFC 10042 is published as an Informational RFC, not a Standards Track document, so it describes a method for implementers to follow rather than an IETF standard that must be adopted. It was published in August 2026 by the IETF sshm Working Group, after being developed as draft-ietf-sshm-mlkem-hybrid-kex. Its authors are P. Kampanakis of AWS, D. Stebila of the University of Waterloo and T. Hansen of AWS. Publication as an RFC means the text is no longer an Internet-Draft, so engineers can cite it by number. Readers should still check the RFC Editor page for any errata or later updates before relying on a specific detail, because the sources on this page do not describe any revision after publication.

Do these SSH key exchange methods apply to my organization?

The RFCs apply to any SSH implementation that chooses to offer these methods. They do not impose a requirement on your organization, and an Informational RFC carries no binding force on its own. IANA registered the three RFC 10042 method names with the OK to Implement value set to SHOULD, and RFC 9941 registered sntrup761x25519-sha512 with SHOULD as well. In practice, whether the methods matter to you depends on whether your SSH servers and clients need to offer them, which usually comes from your own risk assessment, from a federal or regulated customer requirement, or from a vendor's support policy. Confirm any such requirement against the governing contract or regulation rather than against these RFCs.

What do these methods require of an SSH server?

A server that implements RFC 10042 must check the length of the client's C_INIT message and perform the FIPS 203 encapsulation key checks on the ML-KEM public key the client sends. If a check fails, the server disconnects the session. The server must also generate fresh ephemeral ECDH or X25519 and ML-KEM key pairs for every connection. RFC 10042 says implementations must not reuse randomness when generating ML-KEM ciphertexts. The three methods use the SSH messages SSH_MSG_KEX_HYBRID_INIT (30) and SSH_MSG_KEX_HYBRID_REPLY (31), and the shared secret is computed as HASH(K_PQ || K_CL). For a method built on sntrup761, RFC 9941 instead defines the server value as 1071 bytes and the client value as 1190 bytes, and it specifies a SHA-512 hash of the two component secrets. Your server software's documentation should state which of these methods it implements and in which release.

How does RFC 10042 differ from RFC 9941?

The two RFCs define different hybrid methods that share a design approach. RFC 9941 defines sntrup761x25519-sha512, which combines the NTRU Prime sntrup761 key encapsulation mechanism with X25519, using SHA-512. RFC 10042 defines three methods based on ML-KEM, the module-lattice key encapsulation standard from NIST FIPS 203: mlkem768nistp256-sha256, mlkem1024nistp384-sha384 and mlkem768x25519-sha256. RFC 10042 says its message abstraction, key derivation and exchange hash input align with RFC 9941, and it follows the terminology of RFC 9794 for PQ/T hybrid schemes. The two documents also differ in author group and publication date: RFC 9941 was published in April 2026 by Markus Friedl, Jan Mojzis and Simon Josefsson, while RFC 10042 followed in August 2026. Engineers choosing between them should look at the method names in their cipher lists, not assume one replaces the other.

Does OpenSSH support these methods, and in which version?

The sources for this page do not state which OpenSSH version supports the RFC 10042 methods, and they do not confirm a release for any of the three. RFC 10042's acknowledgements say that Damien Miller and Markus Friedl implemented some of these methods in OpenSSH, but they give no version or support details. For sntrup761x25519-sha512, RFC 9941 records that OpenSSH implemented the predecessor in 2019, that sntrup761 replaced sntrup4591761 in 2020, and that the method became OpenSSH's default key exchange in 2022. To confirm support for a specific method, check the OpenSSH release notes and the sshd_config and ssh manual pages for the version you run, and run ssh -Q kex on your client and server to list the key exchange methods each binary offers.

Where can I get the RFC 10042 and RFC 9941 documents?

Both documents are freely available from the RFC Editor, and the official pages are the place to cite and read them. RFC 10042 is at rfc-editor.org/rfc/rfc10042.html and RFC 9941 is at rfc-editor.org/rfc/rfc9941.html. The related documents named in these RFCs are RFC 9794, which defines the hybrid terminology, and NIST FIPS 203, which defines ML-KEM and its encapsulation key checks. Read RFC 9794 first if you need the exact meaning of terms such as PQ/T hybrid scheme, because both SSH RFCs rely on that vocabulary. Keep a copy of the publication date and RFC number in your records, since configuration decisions should reference the document as published.

How the SSH hybrid key exchange messages move between client and server

The exchange starts when the client sends SSH_MSG_KEX_HYBRID_INIT (message 30), carrying its ML-KEM encapsulation key and its ECDH or X25519 public value. The server checks the message length and the FIPS 203 encapsulation key, encapsulates a shared secret, and returns SSH_MSG_KEX_HYBRID_REPLY (message 31) with its ciphertext and its own ECDH or X25519 value. Both sides then compute K as HASH(K_PQ || K_CL) from the ML-KEM and classical secrets. If a length or key check fails, the party that detects it disconnects with SSH_DISCONNECT_KEY_EXCHANGE_FAILED.

Message flow for the hybrid key exchange, including the disconnect on a failed check.

How DeployOpen works on this

DeployOpen approaches SSH post-quantum key exchange by first mapping which of the three hybrid methods in RFC 10042 and the sntrup761x25519-sha512 method in RFC 9941 your servers and clients actually offer. We then scope the work in writing, build and test the configuration against the documents, and hand over the results with the evidence your team needs for review.

How we scope

  • We list the SSH servers, clients and bastions in your environment and record which key exchange methods each one currently offers.
  • We confirm which of the RFC 10042 methods (mlkem768nistp256-sha256, mlkem1024nistp384-sha384, mlkem768x25519-sha256) and the RFC 9941 method your software versions support.
  • Engagements are fixed-scope, with the systems covered, deliverables and timeline agreed in writing before any configuration work begins.

How we build

  • We configure the KexAlgorithms ordering on the in-scope servers and clients, keeping the classical methods available where interoperability requires it.
  • We test the handshake in a staging environment to confirm the negotiated method, the hybrid message exchange and the disconnect behavior on failure.
  • We check that the implementations enforce the ML-KEM encapsulation key checks and the ephemeral key handling that RFC 10042 requires.

How we hand over

  • You receive a written record of every system, its previous and current key exchange configuration, and the method negotiated during testing.
  • The documentation maps each configuration change to the specific RFC section it implements, so your engineers and auditors can trace the decisions.
  • We walk your team through the results, and any open items are recorded with owners so nothing is left undocumented at handover.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers, covering later OpenSSH releases and new method registrations.
  • We re-run the negotiation tests after software upgrades, since the defaults and the sntrup761 alias behavior can change between versions.
  • Confirm compatibility for your exact OpenSSH, TinySSH or other implementation versions with the vendor documentation before relying on any method.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.