Post-Quantum SSH Migration: ML-KEM Key Exchange, FIPS Mode, and Finding Sessions That Are Still Classical
OpenSSH has used post-quantum key exchange by default for years, but its default method is not available in FIPS mode. Where RFC 10042 and the CNSA 2.0 SSH profile stand in November 2026, and how to find SSH sessions that still negotiate classical keys.
Secure Shell (SSH) is how administrators log in to servers, routers, firewalls, and hypervisors. It is also how automation tools push configuration and how many agencies exchange files with partners over SFTP. Those sessions carry passwords typed at privilege prompts, device configurations, database exports, and bulk record transfers. A session recorded today can be decrypted later if its key exchange can be broken by a quantum computer.
Executive Order 14412 sets December 31, 2030 as the date for federal key establishment to move to post-quantum cryptography (see our summary of the federal mandates). SSH is in an unusual position against that date. The most widely used implementation already negotiates a post-quantum method by default, so a large share of sessions migrated without anyone planning it. The remaining work is in three places: hosts that run in FIPS mode, SSH implementations other than current OpenSSH, and proof of what each session negotiated.
Where SSH stands in November 2026
- OpenSSH. The project’s post-quantum page records that a hybrid post-quantum key exchange has been the default since release 9.0 in April 2022. Release 10.0 (April 2025) changed the default to
mlkem768x25519-sha256, which combines ML-KEM-768 with the X25519 elliptic curve exchange. - The standard. RFC 10042 (August 2026) defines three hybrid methods for SSH. Each method hashes an ML-KEM shared secret together with a classical one, so the session key holds if either component holds.
- National security systems. Authors at NSA maintain a CNSA 2.0 profile for SSH. The October 30, 2026 revision calls for ML-KEM-1024 alone (no hybrid) for key exchange, ML-DSA-87 for host and user keys, and AES-256 in GCM mode. It is an independent submission without IETF consensus, so treat it as an indication of direction and confirm requirements through NSA’s approval processes.
- Signatures. Post-quantum host keys and user keys are less settled. An IETF draft for ML-DSA keys in SSH is not yet an RFC. OpenSSH 10.6 (October 2026) enabled a composite algorithm that pairs ML-DSA-44 with Ed25519.
The default method is not available in FIPS mode
Federal systems commonly run their operating systems in FIPS mode, which restricts cryptography to approved algorithms inside a validated module. That setting changes which of the three RFC 10042 methods a host can use.
| Method | Classical component | ML-KEM parameter set | In upstream OpenSSH | In FIPS mode |
|---|---|---|---|---|
mlkem768x25519-sha256 | X25519 | ML-KEM-768 | Yes, default since 10.0 | Not offered. RFC 10042 identifies X25519 as the non-approved component |
mlkem768nistp256-sha256 | ECDH on P-256 | ML-KEM-768 | No | Offered in RHEL 10.2 through vendor patches |
mlkem1024nistp384-sha384 | ECDH on P-384 | ML-KEM-1024 | No | Offered in RHEL 10.2 through vendor patches |
The last two columns come from a Red Hat engineering post from May 2026. It states that the upstream OpenSSH maintainers decided not to implement the two NIST curve hybrids, and that Red Hat Enterprise Linux 10.2 adds them through its own patches as the only post-quantum SSH key exchange methods compatible with FIPS mode on that platform.
Two consequences follow. A host in FIPS mode on a release without the NIST curve hybrids has no post-quantum SSH key exchange, and its sessions use classical elliptic curve Diffie-Hellman. And a FIPS mode host that offers only the NIST curve hybrids shares no post-quantum method with a peer running unpatched upstream OpenSSH, so that pair also negotiates a classical method. In both cases the login works and nothing looks wrong.
Enabling ML-KEM in configuration is also different from running it inside a validated module. Our post on FIPS 140-3 validation for post-quantum algorithms covers how to check a module certificate for that.
SSH runs in more places than Linux servers
OpenSSH on a current Linux distribution is the easy case. A typical agency also has SSH in:
- Network operating systems on routers, switches, and firewalls.
- Embedded servers in storage controllers, baseboard management controllers, and appliances.
- Libraries inside configuration management tools, deployment pipelines, and managed file transfer products.
- Client software on administrator workstations and jump hosts.
Each has its own algorithm list and release schedule. An inventory that counts only sshd packages will miss most of them.
A session that connects may still be classical
In SSH, the client and server each send an ordered list of key exchange methods, and the first method on the client’s list that the server also supports is used. If the lists share no post-quantum method, the session falls back to a classical one and connects normally.
OpenSSH now reports this on both ends. Since release 10.1 (October 2025), the client prints a warning when a connection negotiates a key exchange that is not post-quantum. Release 10.6 added the same WarnWeakCrypto option to the server, on by default, which logs when a client uses such a method. The project recommends silencing the client warning per host, for known exceptions, and not globally.
The server log is the more useful source for a program office. It records what real clients negotiated, including automation accounts and partner systems that nobody tests by hand. For devices that cannot produce such a log, run a verbose client connection (ssh -v), which prints the negotiated key exchange method.
An illustrative example: 900 SSH endpoints
Consider a hypothetical agency with 900 SSH endpoints. All numbers are illustrative.
| Group | Endpoints | State found by inventory |
|---|---|---|
| Linux servers, not in FIPS mode | 410 | Negotiate mlkem768x25519-sha256 with current clients |
| Linux servers in FIPS mode | 190 | No post-quantum method until an operating system update adds the NIST curve hybrids |
| Network devices | 220 | 60 have a software release with a hybrid ML-KEM method, 160 do not |
| Appliances and file transfer endpoints | 80 | 25 are partner SFTP servers with algorithm lists the agency does not control |
The agency orders the work by what the sessions carry. Nightly SFTP transfers of records with long retention periods come first, followed by administrative access to systems that hold them. The 190 FIPS mode servers are scheduled for the operating system update, and the jump hosts that administer them are scheduled with them. The 160 network devices and the partner endpoints are recorded as exceptions, each with an owner and an end date.
Ten weeks later, server logs show that 37 of the updated FIPS mode servers still receive classical sessions. The cause is on the other end: one jump host was missed, and its client does not have the NIST curve hybrids.
Host keys and user keys come second
The OpenSSH project notes that signatures do not carry the record-now risk that key exchange does. The requirement is to retire classical signature keys before a capable quantum computer exists. Because the SSH signature standards are still in progress, the useful work now is inventory: host keys, user keys in authorized_keys files, SSH certificate authorities, and every place a host key is pinned, such as known_hosts files inside automation.
Questions for suppliers and change reviews
- Which RFC 10042 key exchange methods does the release support?
- Which of them are available when the product runs in its FIPS approved mode?
- Which SSH implementation or library does the product embed, and at what version?
- Can the product log the negotiated key exchange method per session, in a form we can export?
- What is the plan for post-quantum host keys and user keys, and which algorithm identifiers will it use?
Keeping evidence per endpoint
SSH configurations drift. Hardening templates are reapplied, and exceptions outlive their end dates. The record that matters is which method each endpoint negotiated, kept current.
Sentinel helps organizations understand and change cryptography across many systems at once, which includes locating SSH algorithm settings across servers, devices, and embedded libraries. CAM provides asset-level cryptographic evidence for assets in production after migration, so a statement such as “these hosts negotiate ML-KEM” can be checked per asset. Both products have a provisional patent issued.
If your program is planning an SSH migration or writing post-quantum requirements for systems that are administered over SSH, contact QuantumWorks.