All News
opensshcryptographyelliptic-curvessecurity

OpenSSH flips its default generated key from ed25519 to ECDSA P-384

One line in ssh-keygen.c swaps ed25519 for a NIST curve three times the size. The commit changes new keys only, sits on master, and says nothing about why.

Vlad MakarovVlad Makarovreviewed and published
2 min read

Anyone who runs ssh-keygen without a type argument now gets an ECDSA key on the NIST P-384 curve instead of the ed25519 key that has been the default for years. The change arrived in a single commit on 3 December, touched one file and three lines, and the message never mentions why.

Two defines in ssh-keygen.c

The patch edits ssh-keygen.c and nothing else. DEFAULT_KEY_TYPE_NAME moves from "ed25519" to "ecdsa", and DEFAULT_BITS_ECDSA from 256 to 384. The commit carries Damien Miller's author line and a short upstream note plus one reviewer acknowledgement. It applies to newly generated user keys when -t is omitted, so existing key pairs and host keys keep the type they were made with. It is also not shipped: the tree sits 316 commits ahead of the latest release tag V_10_6_P2 and 17 behind it, so no packaged OpenSSH carries the default. Follow-on commits on 6 December add regression tests for ES384 WebAuthn and rename a P-256 constant, which reads as integration rather than second thoughts.

What a larger curve buys

Precision helps here. The old default sat on a 255-bit curve outside the NIST family; the new one is a 384-bit curve inside it. Increasing the size adds margin against a cryptanalytic attack that turns out to scale better than expected. It does not change the family of mathematics the signature rests on, and it does nothing for any key already on disk. An adversary who can solve the discrete logarithm on P-384 has already beaten the 256-bit curve; extra bits delay that moment rather than remove it. Read that way, this is a forward-looking default rather than a fix, the kind of hedge a project takes when it will not swap in a new signature scheme at patch level.

The same week, in order

Ordering is the only thing the record supports. NIST issued a statement on 3 December saying it remains confident in its post-quantum standards, urging organisations to accelerate migration and promising a more aggressive deprecation timeline. That same day, Google announced Chrome's P-256 deadline of 15 March 2027 for CA keys. Two days later, Anthropic and OpenAI put out a joint statement about weaknesses researchers separately found in internet cryptography, naming no algorithm. No OpenSSH commit message, mail thread or release note among these sources gives a reason, and The Register noted that neither Google nor Mozilla tied its move to the disclosure.

Nothing breaks today. Existing ed25519 keys keep working, -t ed25519 still works, and distributions will not inherit the default until a release carries it. Anyone scripting key creation for a fleet should pin the type explicitly instead of trusting whichever build gets installed. The question worth watching is what the release notes say when one finally does.

Related Articles

Scroll down

to load the next article