OpenSSH warns that attackers could record encrypted SSH traffic today and read it later if quantum computers become powerful enough to break the older methods used to set up those connections.
The OpenSSH 10.1 release, issued on October 6, 2025, made the client display a warning by default whenever a connection uses a key exchange method that is not designed to resist quantum attacks.
The warning is not evidence that anyone has intercepted the connection or that today’s quantum computers can read it. It tells users that the client and server chose a method that may not protect the session in the future.
The login can still succeed, which makes the message easy to dismiss, especially when it appears on a connection that has worked for years.
OpenSSH Post-Quantum Cryptography
Key exchange is the first step in setting up an encrypted SSH session. It lets the client and server establish a shared secret without sending that secret over the network. Both sides then use it to create the keys that protect the session.
If a future quantum computer can recover that secret from a recording of the connection, an attacker could read the recorded session, including commands, terminal output, and files transferred over it.
This is known as “store now, decrypt later” or “harvest now, decrypt later.” There is no confirmed date for a quantum computer capable of breaking these methods. For security teams, the more useful question is how long the information sent over SSH needs to stay private.
As our coverage of NIST’s migration guidance explains, moving to stronger key exchange and replacing older digital signatures are separate tasks.
OpenSSH 9.0 made a hybrid key exchange based on sntrup761x25519-sha512 the default in April 2022. Version 9.9 added mlkem768x25519-sha256, which became the preferred method in OpenSSH 10.0 in April 2025. Version 10.1 did not introduce quantum-resistant key exchange. It made it harder to miss when a connection falls back to an older method.
The newer default pairs ML-KEM-768, defined in NIST’s FIPS 203 standard, with X25519, a widely used classical method. The hybrid design does not put all its trust in the newer algorithm. If researchers find a way to break ML-KEM, the X25519 part still provides its existing protection against classical attacks.
Start by checking whether the server supports either hybrid method. If it does not, upgrade the server or check with the vendor for an update. If both ends already support hybrid key exchange, review KexAlgorithms on the client and server.
An older configuration may leave the hybrid methods out or prefer a classical method. Reconnect with ssh -v user@host and check the kex: algorithm line to see what the connection actually selected.
For a legacy host that cannot be upgraded, OpenSSH documents a per-host WarnWeakCrypto no-pq-kex setting. It hides the warning without changing the encryption, so keep any exception limited to that host.
Give priority to connections that carry data that must remain private for years. An upgrade can protect future sessions, but it cannot change the key exchange used by a session someone may already have recorded.

