OpenSSH Switches Default ssh-keygen Keys to ECDSA NIST P-384

OpenSSH has updated its default key generation algorithm from Ed25519 to 384-bit ECDSA. This change reflects a broader industry trend toward strengthening cryptographic standards in response to emerging security threats.
Why it matters
As a foundational tool for secure remote access, changes to OpenSSH defaults have significant implications for global cybersecurity and server administration.
OpenSSH has changed the default key algorithm generated by ssh-keygen, replacing 256-bit Ed25519 with 384-bit ECDSA on the NIST P-384 curve [1] . The upstream commit, authored by OpenSSH developer Damien Miller and reviewed by Markus Friedl, landed in OpenBSD on December 3, 2026, and synced to the portable OpenSSH repository on December 5, 2026 [1] .
The six-line patch to ssh-keygen.c modifies two compile-time defaults [1] [2] . It changes DEFAULT_KEY_TYPE_NAME from ed25519 to ecdsa and raises DEFAULT_BITS_ECDSA from 256 to 384, leaving the default RSA key size unchanged at 3,072 bits [2] .
Running ssh-keygen without a -t flag in future OpenSSH releases built from this tree will generate an ECDSA NIST P-384 keypair rather than an Ed25519 keypair [1] [2] . Users who explicitly specify -t ecdsa without a -b bit-length flag will also receive a 384-bit key instead of a 256-bit P-256 key [2] .
Also covering this story
One other newsroom covered this event. We read that version too.
Get smarter about the news
Sign up free for a feed built around what you actually care about, Dive Deeper research on any story, and the full text of every article.
Create free accountAlready have an account? Sign in