OpenSSH Changes ssh-keygen Default to ECDSA P-384 From Ed25519 in Upstream Commit
The upcoming release following 10.6p2 will feature a new default in ssh-keygen: OpenSSH is swapping the standard 256-bit Ed25519 algorithm for 384-bit ECDSA on the NIST P-384 curve.
- Upstream commit authored by Damien Miller, reviewed by Markus Friedl, landed Dec. 3 in OpenBSD and Dec. 5 in portable tree.
- Default key type constant switched from
ed25519toecdsa; default ECDSA bit length raised from 256 to 384. - RSA default unchanged at 3,072 bits; Ed25519 remains supported via
-t ed25519. - Change arrives amid industry retreat from 256-bit curves; Chrome plans to drop P-256 CA trust March 15, 2027.
What changed in the code
A six-line patch to ssh-keygen.c modifies two compile-time defaults, MLQ.ai reported. DEFAULT_KEY_TYPE_NAME moves from ed25519 to ecdsa, and DEFAULT_BITS_ECDSA rises from 256 to 384. The commit, carrying OpenBSD-Commit-ID c5bfb4c2 and signed off with “ok markus@”, bears the subject “switch default key type generated to ECDSA NISTP384”. It does not deprecate existing Ed25519 host or user keys.
The portable repository shows the commit authored Dec. 3 at 08:40:32 UTC and committed to the portable tree Dec. 5 at 20:43:33 UTC+11. The newest released version remains 10.6p2, issued Nov. 5 — 28 days before the commit — so installations of official releases still generate Ed25519 keys by default, as the source tagged for 10.6p2 still sets Ed25519 and 256 bits.
Operational impact for automation
Scripts and CI pipelines that invoke ssh-keygen without a -t flag will begin writing id_ecdsa and id_ecdsa.pub files instead of id_ed25519 pairs once distributions package the new code.
Explicit -t ecdsa without -b now yields a 384-bit P-384 key rather than a 256-bit P-256 key. A command such as ssh-keygen -b 4096 with no type flag will fail on the new code because ECDSA accepts only 256, 384, or 521 bits.
Before upgrading, operators maintaining strict key-type allowlists in sshd_config, on Git hosting platforms, or on bastion servers should confirm that ecdsa-sha2-nistp384 is allowed, or explicitly lock in their desired algorithm using -t in automation, MLQ.ai advised.
Context: retreat from 256-bit curves
The switch coincides with a cross-industry pullback from 256-bit elliptic-curve cryptography. Google Chrome plans to stop trusting ECDSA P-256 certificate authority keys on March 15, 2027, MLQ.ai reported, citing a blog by int08h that compiled a chronology of recent disclosures, according to Tproger.
On Dec. 3, Bruce Schneier wrote that a reliable source had told him of a break in ECC P-256, though he clarified that “break” in cryptographic terms may mean a theoretical reduction in strength rather than a practical exploit. No public scientific paper detailing an attack on P-256 exists.
Let’s Encrypt recommends P-384 and RSA-3072 as default alternatives. While Ed25519 is fixed at roughly 128-bit classical security over Curve25519, NIST P-384 provides a larger 384-bit prime field while remaining widely supported by existing OpenSSH clients, servers, hardware security modules, and enterprise PKI stacks, MLQ.ai reported.

Post-quantum signature order updated same week
Earlier that same morning, another commit promoted the post-quantum hybrid ML-DSA-44/Ed25519 to the top of the signature algorithms offered by clients and servers, i10x.ai reported. On Dec. 5, the team added a stronger hybrid, ML-DSA-87 with P-384, which is supported but not yet enabled by default.
The hybrid mldsa44-ed25519 has been fully enabled since OpenSSH 10.6 in October 2026; keys generated with the experimental version in 10.4 must be regenerated, the release notes state, i10x.ai added.
OpenSSH has not published a rationale for the default-key change; the commit messages say only what changed. The surrounding week saw the NSA direct operators of national security systems to accelerate post-quantum migration, citing private disclosures by AI companies, i10x.ai reported.