OpenSSH Post-Quantum Cryptography
OpenSSH is proactively integrating post-quantum cryptography, making hybrid algorithms the default and soon warning users about quantum-unsafe connections. This move aims to thwart 'store now, decrypt later' attacks from future quantum computers. The HN discussion orbits around the practicalities of this massive crypto migration, the speculative timeline of quantum computing, and the perennial debate over cryptographic robustness.
The Lowdown
OpenSSH is taking a bold leap into the post-quantum era, integrating cryptographic algorithms designed to withstand attacks from quantum computers. This forward-looking approach began with OpenSSH 9.0 (April 2022) by defaulting to sntrup761x25519-sha512 and further advanced with OpenSSH 9.9's addition of mlkem768x25519-sha256, which will become the new default in version 10.0 (April 2025). The project is pushing for widespread adoption:
- Future Warnings: OpenSSH 10.1 will introduce a warning for users connecting with non-post-quantum key exchange algorithms, highlighting their vulnerability to 'store now, decrypt later' attacks.
- Quantum Threat: The primary driver is the anticipated arrival of cryptographically-relevant quantum computers (estimated 5-20 years away), which could break current key agreement and digital signature schemes.
- Hybrid Approach: OpenSSH's chosen post-quantum algorithms are 'hybrids', combining a post-quantum scheme with a classical one. This ensures that even if the new quantum-resistant part is flawed, the connection remains at least as secure as the best classical methods.
- Signature Algorithms: While signature algorithms are also vulnerable, they don't pose the same 'store now, decrypt later' risk, so their post-quantum migration is planned for a later phase.
OpenSSH is making a pragmatic bet on the future, securing communications against a threat that is not yet fully realized but whose potential impact necessitates early action. By adopting hybrid algorithms, it minimizes risk while nudging the entire ecosystem towards a more quantum-resilient state.
The Gossip
Quantum Quandaries and Chronology
The community debated the imminent reality of cryptographically-relevant quantum computers. Skeptics questioned if such powerful machines would ever be practical, citing analog limitations or even floating theories that the current PQ push might be a covert response to an undisclosed present-day crypto break. Others simply wondered when the threat would materialize, often linking it to future tech milestones like macOS versions or chip releases.
Deployment Dilemmas and Distribution
Users shared real-world friction points in adopting post-quantum SSH. Issues ranged from compatibility headaches between different OpenSSH versions (e.g., specific key types like `mldsa44-ed25519` failing between macOS and server builds) to the challenges of updating legacy systems and specialized clients (like Tinyssh or older terminal emulators) that lack PQ support. The discussion also touched upon specific algorithm choices and recommendations, such as the NSA's preference for ML-DSA-87 for higher security profiles.
Cryptographic Concerns and Comparisons
The discussion delved into the trustworthiness of newly introduced post-quantum algorithms and their security relative to established methods. Some mused about whether 'security through obscurity' had any merit (it doesn't), or if older algorithms like RSA might surprisingly offer better quantum resistance than ECC due to key length. However, counter-arguments quickly clarified that cipher design and underlying mathematical principles are far more critical to security than mere key length, debunking the simple 'bigger key is better' notion.