OpenSSH 10.1 Post-Quantum Cryptography Warnings & Defaults
OpenSSH 10.1 warns users on non-post-quantum SSH connections to stop store-now-decrypt-later attacks, recommending upgrades to mlkem768x25519-sha256.
By Dillip Chowdary • Dec 03, 2026 • Source: openssh.org

At a glance
- Project
- OpenSSH
- Warning added
- OpenSSH 10.1
- Default since
- OpenSSH 9.0 (April 2022)
- Current default
- mlkem768x25519-sha256 (10.0)
- Fallback PQ kex
- sntrup761x25519-sha512
- Config override
- WarnWeakCrypto no-pq-kex
In this post
The OpenSSH project published updated guidance explaining its multi-year transition to post-quantum key agreement algorithms and the new runtime warnings introduced in OpenSSH 10.1. According to openssh.org's report, OpenSSH now alerts users whenever an SSH connection negotiates a classical key exchange vulnerable to future quantum decryption.
This guide explains OpenSSH's default post-quantum algorithms across versions 9.0 through 10.1, why "store now, decrypt later" attacks threaten encrypted SSH traffic today, and how administrators can upgrade servers or selectively suppress warnings. It is written for systems administrators, DevOps teams, and security engineers managing SSH fleets.
01Default warnings in OpenSSH 10.1
Starting with OpenSSH 10.1, the SSH client displays a prominent warning whenever a server fails to negotiate a post-quantum key agreement algorithm. The exact terminal notice warns that the connection is not using a post-quantum key exchange algorithm, states that the session may be vulnerable to "store now, decrypt later" attacks, notes that the server may need upgrading, and points operators to https://openssh.com/pq.html.
The warning triggers by default because the confidentiality of an entire SSH connection rests on cryptographic key agreement. If an adversary can break the key agreement handshake, that attacker can decrypt and inspect the complete recorded session, making silent downgrades on older servers visible to every client operator.
02Evolution from OpenSSH 9.0 to 10.0
OpenSSH enabled post-quantum key agreement by default in release 9.0 back in April 2022 using the sntrup761x25519-sha512 algorithm. In OpenSSH 9.9, developers added a second standardized key agreement scheme, mlkem768x25519-sha256, before promoting it to the primary default algorithm in OpenSSH 10.0 in April 2025.
| Release | Default status | Primary KexAlgorithms change |
|---|---|---|
| OpenSSH 9.0 (Apr 2022) | Default enabled | Introduced sntrup761x25519-sha512 |
| OpenSSH 9.9 | Added option | Added mlkem768x25519-sha256 support |
| OpenSSH 10.0 (Apr 2025) | Default switched | Made mlkem768x25519-sha256 default |
| OpenSSH 10.1 | Active warning | Warns on non-PQ key agreement |
Every post-quantum key agreement scheme implemented by OpenSSH is a hybrid construction pairing a post-quantum algorithm with a classical algorithm. Specifically, mlkem768x25519-sha256 combines ML-KEM with classical ECDH/x25519, ensuring the combined handshake remains at least as strong as OpenSSH's previous best classical algorithm even if ML-KEM is broken by future cryptanalysis.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Store now, decrypt later threat model
Cryptographically relevant quantum computers capable of breaking classical key agreement and digital signatures do not yet exist, with estimates based on current progress ranging from five to twenty years and many observers pointing to the mid-2030s. However, OpenSSH emphasizes that attackers do not need real-time decryption: adversaries can capture encrypted SSH traffic on the wire today and archive it for retroactive decryption once quantum hardware matures.
Because of this "store now, decrypt later" or "harvest now, decrypt later" risk, securing key agreement is immediately urgent. By contrast, classical digital signature schemes such as RSA and ECDSA face no retroactive decryption threat against past traffic, meaning organizations only need to retire classical signature keys before cryptographically relevant quantum computers arrive, ahead of planned post-quantum signature support in future OpenSSH releases.
04Upgrading servers and WarnWeakCrypto controls
When an OpenSSH 10.1 client emits the non-post-quantum warning, the ideal fix is upgrading the target server to an SSH implementation supporting either mlkem768x25519-sha256 or sntrup761x25519-sha512. OpenSSH 9.0 and newer support sntrup761x25519-sha512, while OpenSSH 9.9 and newer support mlkem768x25519-sha256; if an upgraded host still warns, administrators should inspect sshd_config to ensure the KexAlgorithms setting has not disabled those algorithms.
Note: For legacy appliances or hosts that cannot be upgraded immediately, operators can silence the alert selectively in ssh_config(5) by pairing Match host unsafe.example.com with WarnWeakCrypto no-pq-kex.
OpenSSH recommends applying WarnWeakCrypto only per specific host rather than turning off weak-crypto warnings globally across client configurations.
05Safety margins and hybrid algorithm rationale
Addressing skepticism over whether engineering barriers will keep quantum computers from scaling to cryptographic sizes or whether newer post-quantum algorithms might harbor hidden flaws, OpenSSH argues the asymmetric engineering trade favors early deployment. If scalable quantum computers become practical, migrating early will have shielded years of sensitive administrative data from retroactive decryption.
Even if quantum computers never scale or if post-quantum algorithms prove slightly weaker than expected, OpenSSH selected candidates with conservative safety margins and wrapped every algorithm inside classical x25519 hybrids, strengthening mathematical underpinnings without risking regression below classical security.
Frequently asked questions
Why does OpenSSH 10.1 warn about non-post-quantum key exchange?
OpenSSH 10.1 warns when a server does not negotiate mlkem768x25519-sha256 or sntrup761x25519-sha512, leaving the session exposed to "store now, decrypt later" traffic harvesting.
Which OpenSSH versions support post-quantum key agreement?
OpenSSH 9.0 (April 2022) and later support sntrup761x25519-sha512 by default, while OpenSSH 9.9 added mlkem768x25519-sha256, which became the default in OpenSSH 10.0 (April 2025).
Are OpenSSH post-quantum algorithms safe if a flaw is found in ML-KEM?
Yes. OpenSSH implements hybrid key exchanges that pair ML-KEM with classical ECDH/x25519 so security does not drop below classical x25519 even if the post-quantum layer is broken.
How can I disable the OpenSSH post-quantum warning for a specific legacy host?
Add Match host followed by WarnWeakCrypto no-pq-kex in ssh_config(5) instead of disabling the warning globally.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement