OpenSSH 10.1 will warn when SSH uses non-post-quantum key exchange
The OpenSSH project has a page on post-quantum cryptography. Its message is short: OpenSSH supports key agreement algorithms considered safe against quantum computers, and the project recommends that all SSH connections use them.
The history is simple. OpenSSH has offered post-quantum key agreement by default since release 9.0 (April 2022), initially through the sntrup761x25519-sha512 algorithm. In OpenSSH 9.9 the project added a second post-quantum scheme, mlkem768x25519-sha256, and made it the new default in OpenSSH 10.0 (April 2025).
To push people toward these algorithms, OpenSSH 10.1 will warn the user when a non-post-quantum key agreement scheme is selected. The message says the connection is not using a post-quantum key exchange algorithm, that the session may be vulnerable to "store now, decrypt later" attacks, that the server may need to be upgraded, and it points to openssh.com/pq.html. The warning is displayed by default but can be disabled with the WarnWeakCrypto option in ssh_config(5). The page shows an example of a per-host setting: a Match block for the host unsafe.example.com with WarnWeakCrypto no-pq-kex.
The page explains the threat in plain terms. A quantum computer can perform computations on information encoded as quantum states and could quickly solve problems that are intractable for classical computers. The mathematics behind a number of cryptographic algorithms is among the problems quantum computers are believed to be able to solve effectively, so a sufficiently powerful, "cryptographically-relevant" machine would break them. Key agreement and digital signatures are the most affected, and both matter in SSH.
Such machines have not been invented yet. Estimates of when one will arrive, based on the rate of progress in the field, range from 5 to 20 years, with many observers expecting the mid-2030s. The urgency comes from how SSH privacy works: the whole privacy of a connection depends on key agreement, and an attacker who breaks it can decrypt and view the entire session. The attacker need not do that in real time. They may collect encrypted SSH sessions now and decrypt them later once they have a quantum computer. This is called a "store now, decrypt later" attack, also "harvest now, decrypt later".
The fix is "post-quantum" algorithms, which rely on different mathematical problems that are understood not to be attackable by a quantum computer. The page says OpenSSH has supported post-quantum key agreement for several years. Servers running OpenSSH versions that include sntrup761x25519-sha512, or 9.9 and later for mlkem768x25519-sha256, should check whether the KexAlgorithms option has disabled their use.
The new default is a hybrid. mlkem768x25519-sha256 combines ML-KEM, a post-quantum key agreement scheme, with ECDH/x25519, the classical algorithm that was formerly OpenSSH's preferred default. The combination is no worse than the previous best classical algorithm, even if the post-quantum part turns out to be completely broken by future cryptanalysis.
Key facts
- OpenSSH recommends that all SSH connections use post-quantum key agreement algorithms.
- Post-quantum key agreement has been on by default since OpenSSH 9.0 (April 2022), first via sntrup761x25519-sha512; mlkem768x25519-sha256 arrived in 9.9 and became the default in 10.0 (April 2025).
- OpenSSH 10.1 will warn by default when a non-post-quantum key agreement scheme is selected; the warning can be turned off with the WarnWeakCrypto option in ssh_config(5).
- The risk is "store now, decrypt later": attackers can record encrypted sessions today and decrypt them once a cryptographically-relevant quantum computer exists, which estimates place 5 to 20 years away.
- mlkem768x25519-sha256 pairs ML-KEM with x25519, so it is no worse than the previous best classical algorithm even if the post-quantum part is broken.
Why it matters
SSH is how many people reach servers, and the privacy of a session rests entirely on key agreement. The page argues that traffic recorded today could be decrypted later, so the exposure begins now, not when a quantum computer appears. OpenSSH has already made post-quantum key agreement the default; the change in 10.1 is a nudge, a visible warning aimed at connections that still use older schemes.
Who it affects
Anyone who runs SSH clients or servers. The warning appears on the client side when the selected key agreement is not post-quantum, and its text says the server may need to be upgraded. Administrators of servers running versions without these algorithms, or servers where KexAlgorithms has been set to exclude the post-quantum schemes, are the ones most likely to see it. The page notes that versions with sntrup761x25519-sha512, or 9.9 and later for mlkem768x25519-sha256, already support the algorithms.
How to use it
If your server already runs a version with these algorithms, check whether the KexAlgorithms option has disabled them. Upgrading OpenSSH is the route for older servers. If you have a host you cannot change, the warning can be silenced with the WarnWeakCrypto option in ssh_config(5); the page's example is a Match block for host unsafe.example.com with WarnWeakCrypto no-pq-kex. The page recommends using the post-quantum algorithms for all connections rather than silencing the warning.
How solid is it
This is first-party: the page comes from the OpenSSH project and describes its own releases and defaults. The version history (9.0 in April 2022, 9.9, 10.0 in April 2025) is stated directly. The quantum timeline is softer: the 5 to 20 year range is given as estimates without a named source, and the mid-2030s is what many observers expect. The page says OpenSSH 10.1 'will' warn and gives no release date for it.
Risks and caveats
The warning is a recommendation, not a block: connections still proceed, and it can be disabled. The threat it addresses is not yet real in the sense that quantum computers of sufficient power have not been invented. The page also covers only key agreement for the new warning; it notes digital signatures are affected too, but describes no signature change. The hybrid design is the safeguard against the post-quantum half being broken: the result is no worse than the previous best classical algorithm. The page cites no figures on how many servers or clients already use post-quantum key agreement.
“We recommend that all SSH connections use these algorithms.”
— OpenSSH project, post-quantum cryptography page