NEWS

4 min read

OpenSSH Now Prioritizes Post-Quantum Cryptography by Default in OpenBSD -current

OpenSSH Now Prioritizes Post-Quantum Cryptography by Default in OpenBSD -current
Image: Redação iMasters
News
Reading
4 min
In short

Recent changes in OpenBSD's development branch swap the default SSH key algorithm and move post-quantum cryptography to the front of the preference list.

OpenSSH is undergoing a series of cryptography changes in OpenBSD's development branch, known as -current, which precedes the system's stable releases. The changes, recorded in commits by Damien Miller (djm@) on December 3 and 4, 2026, and documented by the site undeadly.org, directly affect what ssh-keygen generates by default and the preference order of signature algorithms used by SSH.

It's important to separate two things: this is not yet in a stable OpenSSH version distributed for production. The latest official release is OpenSSH 10.6p2, released on November 5, 2026. The changes described here live in the OpenBSD development snapshot and are likely to appear in future releases, but they signal the direction the project is taking.

What Changed in the Code

Three commits sum up the change. The first alters the default key type generated by ssh-keygen: instead of 256-bit ECDSA, the default becomes ECDSA NISTP384, a more robust curve. Anyone running ssh-keygen without specifying -t will now generate a different key than before.

OpenBSD Journal page showing Damien Miller's commits with the changelogs of cryptographic changes in OpenSSH -current, including the switch to ECDSA NISTP384 and ML-DSA support
OpenBSD Journal page showing Damien Miller's commits with the changelogs of cryptographic changes in OpenSSH -current, including the switch to ECDSA NISTP384 and ML-DSA support. Reprodução: undeadly.org.

The second commit changes the preference order of signature algorithms used in connections. The first choice becomes a hybrid scheme combining ML-DSA 44 with ed25519, followed by ECDSA NISTP384. ML-DSA is a digital signature algorithm resistant to quantum computers, standardized by NIST; the hybrid scheme combines it with a classical algorithm (ed25519) so that the connection only becomes vulnerable if both schemes are broken at the same time.

The third commit, from December 4, adds initial support for composite signatures ssh-mldsa87-p384, based on draft-ietf-sshm-composite-sigs-01, with the corresponding certificate type ssh-mldsa87-p384-cert. This option combines ML-DSA 87 (a stronger variant) with ECDSA p384, but it is not yet enabled by default.

The Trigger: Damien Miller's Statement

The changes come in the wake of recent statements about the urgency of migrating to post-quantum cryptography, including positions taken by NSA and Anthropic. Damien Miller commented on the matter in a post on the fediverse, quoted by undeadly.org:

No how much more complicated my life is going to get by whatever motivated the NSA/Anthropic statements I will take great solace in knowing that it's going to be 10000x worse for cryptocurrencies

Damien Miller, OpenSSH maintainer (djm@)

The tone is ironic, but the message is direct: the project is treating the post-quantum transition as something that needs to happen now, not years from now, and chose to move SSH forward rather than wait for a final consensus on the matter.

Why This Matters for Infrastructure Maintainers

For those who manage servers, CI/CD pipelines, and provisioning scripts, the change in the default key type is the one that demands the most immediate attention. Any automation routine that calls ssh-keygen without explicitly passing -t will start generating ECDSA NISTP384 keys instead of 256-bit ECDSA once this version reaches a stable release and is adopted.

This has practical implications:

  • Terraform, Ansible, and bootstrap scripts that generate key pairs at provisioning time may produce keys with a format or size different from what's expected by automated tests or key size validations.
  • Pipelines that pin the signature algorithm (due to compliance policy or integration with specific hardware) need to review whether ECDSA NISTP384 and the hybrid ML-DSA 44/ed25519 scheme are compatible with what's certified.
  • Appliances and embedded devices with older SSH implementations may not recognize the new key and signature types, which can break handshakes in hybrid environments (new server, old client, or vice versa).

What's Still Open

Support for composite ssh-mldsa87-p384 signatures is still not enabled by default, which means the project is testing this option before pushing it out to everyone. The draft-ietf-sshm-composite-sigs-01 it's based on is also a draft, not a finalized IETF standard, so the format may change before it becomes stable.

There is also, as of now, no set date for when these -current changes will reach a numbered OpenSSH release. Teams that want to get ahead of it can run OpenBSD -current in a test environment to validate script and integration compatibility before the change reaches production, but it's not the kind of thing worth putting into production today.

For those who only use OpenSSH as packaged in Linux distributions (the vast majority in Brazil), the practical path now is to follow the changelogs of the openssh-server package in the distro used and review, when the change arrives, whether key generation scripts explicitly specify the algorithm or rely on the system default.

Translated from the Brazilian Portuguese original · Read the original