OpenSSH Warns of Future Quantum Decryption Threat to Today's SSH Traffic
OpenSSH is alerting users to a potential 'store now, decrypt later' threat where future quantum computers could break current SSH encryption, urging adoption of quantum-resistant methods.

OpenSSH has issued a significant warning regarding the long-term security of encrypted SSH traffic, cautioning that data transmitted today could be decrypted by sufficiently powerful quantum computers in the future. This potential vulnerability stems from older key exchange methods used to establish SSH sessions, which are not designed to withstand quantum attacks. The OpenSSH 10.1 release, deployed in October 2025, now defaults to displaying a warning to users when a connection utilizes a key exchange method susceptible to future quantum decryption.
This warning does not indicate that current quantum computers can break these encryption methods, nor does it suggest that any specific session has been intercepted. Instead, it serves as a proactive alert that the chosen key exchange mechanism may not provide enduring protection for the data. The ability for the connection to still succeed, despite the warning, means users might easily overlook or dismiss the message, especially for connections that have been established without issue for years.
The process of establishing an encrypted SSH session begins with key exchange, where the client and server agree on a shared secret without transmitting it openly over the network. This shared secret is then used to derive the encryption keys that secure the entire communication session. If a future quantum computer can reverse-engineer this shared secret from recorded network traffic, an attacker could then decrypt and read the entire session's contents, including sensitive commands, terminal outputs, and file transfers. This scenario is commonly referred to as a "store now, decrypt later" or "harvest now, decrypt later" attack.
While the exact timeline for the development of quantum computers capable of breaking current cryptographic standards remains uncertain, security teams must consider the required lifespan of data privacy. OpenSSH has been progressively migrating towards more robust cryptographic methods. Version 9.0, released in April 2022, defaulted to a hybrid key exchange method combining sntrup761x25519-sha512. Subsequently, version 9.9 introduced mlkem768x25519-sha256, which became the preferred default in version 10.0 in April 2025. The latest version, 10.1, did not introduce new quantum-resistant key exchange algorithms but focused on making it more apparent when older, less secure methods are being used.
The current recommended default key exchange method pairs ML-KEM-768, a standard defined by NIST, with X25519, a widely adopted classical cryptography algorithm. This hybrid approach offers a layered defense: if the newer ML-KEM algorithm is compromised by future research, the established X25519 component still provides protection against classical computing attacks. This design aims to mitigate risks associated with the evolving threat landscape.
To address this potential threat, organizations should verify that both their SSH clients and servers support these newer hybrid key exchange methods. If a server does not support them, an upgrade is necessary, or users should consult their vendor for available updates. For environments where upgrading servers is not immediately feasible, OpenSSH provides a WarnWeakCrypto no-pq-kex setting that can suppress the warning message for specific hosts, though this does not alter the encryption method itself. It is crucial to prioritize connections that handle data requiring long-term confidentiality.
While upgrading key exchange algorithms can protect future sessions, it cannot retroactively secure sessions that may have already been recorded. Therefore, the urgency of migrating to quantum-resistant cryptography is paramount for data that must remain secure for extended periods. This proactive stance is essential in preparing for the inevitable advancements in quantum computing capabilities.