Sulat.com / Writing on AISunday, December 6, 2026
Enter →
Infrastructure/6 December 2026

OpenSSH changes its default key to ECDSA P-384

A 3 December OpenSSH commit makes ssh-keygen create ECDSA P-384 keys instead of Ed25519. I built the 5 December code and tested it against old clients.

3D OpenSSH pufferfish agent holding a key beside a glowing split lattice key on a dark navy grid
Illustration: Sulat, featuring the OpenSSH logo

At a glance

  • On 3 December OpenSSH changed the ssh-keygen default key from Ed25519 to ECDSA P-384, and no release carries it yet.
  • A second change puts the ML-DSA-44 plus Ed25519 hybrid first in the signature order, with P-384 second and Ed25519 third.
  • I built the 5 December code and the 1 December code: new default keys log in from an Ubuntu 24 OpenSSH 9.6 client, but the hybrid key doesn't.
  • A fresh install now generates five host keys, including an ML-DSA-87 hybrid, and its ECDSA host key is 384-bit.
  • The choice lines up with the NSA's 2 December advisory, which approves P-384 and leaves EdDSA off its list.
  • Write -t in scripts that call ssh-keygen, so a new release can't change the key type under you.

OpenSSH has changed the key that ssh-keygen makes when you don’t name a type. A commit on 3 December swaps Ed25519 for ECDSA on the P-384 curve, and a second one moves a post-quantum hybrid to the top of the signature preference list. Neither is in a release. I built the 5 December code and ran it against the build from 1 December.

Nothing already on disk breaks. The new default only applies to keys you make from now on, and Ed25519 is still one flag away. What does move is the set of host keys a fresh install generates, and the order in which a client prefers key types. It lands in the same week as the NSA’s post-quantum advisory and the joint statement from the big tech companies.

What the commits changed

Damien Miller committed the default-key change on 3 December. The message is one line.

upstream: switch default key type generated to ECDSA NISTP384; ok markus@

Commit 5b63da2, OpenSSH

It changes two values in ssh-keygen.c. The default type goes from ed25519 to ecdsa, and the default ECDSA size goes from 256 bits to 384. That second edit is why asking for an ECDSA key with no size now gives you P-384 as well.

A minute later Miller committed a change to the signature preference order, “to prefer ML-DSA 44/ed25519 hybrid followed by ECDSA NISTP384”. A follow-up on 4 December from another OpenBSD developer, naddy, was titled “actually change the default signature algorithm preference order”. It moved plain Ed25519 below both. On 5 December Miller added a second hybrid, ML-DSA-87 with ECDSA P-384, as ssh-mldsa87-p384. The commit says it’s “not yet enabled by default”. ML-DSA-87 is the signature parameter set in the NSA’s CNSA 2.0 table, and both hybrids follow the IETF composite signatures draft that Miller edits.

Ed25519 has held the default since OpenSSH 9.5 in 2023, when its release notes said “ssh-keygen(1): generate Ed25519 keys by default”.

Behaviour1 December build5 December build
ssh-keygen with no -tEd25519ECDSA, 384-bit
ssh-keygen -t ecdsa256-bit384-bit
Hybrid in the signature orderLastFirst
Ed25519 in the signature orderFirstThird
Host keys from ssh-keygen -ARSA, ECDSA 256, Ed25519, ML-DSA-44 hybridRSA, ECDSA 384, Ed25519, ML-DSA-44 hybrid, ML-DSA-87 hybrid
What I measured on the two builds, from the runs below.
Two columns: new keys default to ECDSA P-384 and hybrid first; old Ed25519 keys and -t ed25519 still work
The default moves and nothing existing breaks. Illustration: Sulat.

What I ran

I built portable OpenSSH from master on 5 December and from the last commit before the change, which is from 1 December. The machine had 4 cores, 15 GB RAM and Ubuntu 24. Both builds still report themselves as 10.6p2, so ssh -V can’t tell you which one you’ve got.

With no type given, the 1 December build made an Ed25519 key and the 5 December build made an ECDSA 384 key. Asking for ECDSA with no size went from 256 to 384, and asking for Ed25519 still gives the same kind of key as before.

Terminal: ssh-keygen makes an Ed25519 key on the 1 Dec build and an ECDSA 384 key on the 5 Dec build
The same command on both builds. Real output from my run.

Printing the client’s default host key algorithms shows the order. On the 1 December build the hybrid sits last, after RSA. On the 5 December build it’s first, then P-384, with Ed25519 third.

Terminal: host key algorithms, hybrid last on the 1 Dec build and first on the 5 Dec build
The hybrid goes from last to first.
Signature order: ML-DSA-44 plus Ed25519 first, then ECDSA P-384, Ed25519, ECDSA P-256
Ed25519 drops from first to third. Illustration: Sulat.

A fresh install runs ssh-keygen -A to create its host keys. On the 5 December build that gives five: RSA 3072, ECDSA 384, Ed25519 and the two hybrids. The 1 December build made four, with ECDSA at 256.

Terminal: ssh-keygen -A makes four host keys on the 1 Dec build and five on the 5 Dec build, with ECDSA now 384
Host keys on a fresh install. I trimmed the fingerprints.

The hybrids cost bytes. The public key file is 89 bytes for Ed25519, 213 for P-384, 1,857 for the ML-DSA-44 hybrid and 3,650 for the ML-DSA-87 hybrid. The draft puts the first hybrid’s raw public key at 1,312 bytes of ML-DSA-44 plus 32 of Ed25519. I timed 60 logins per key type against the new sshd over loopback. All three took about 137 ms at the median, so the larger key doesn’t show up on loopback.

Bar chart of public key file sizes: Ed25519 89 bytes, P-384 213, ML-DSA-44 hybrid 1,857, ML-DSA-87 hybrid 3,650
The post-quantum keys are about twenty times the size. Illustration: Sulat.

What older clients do

I ran the 5 December sshd with three host keys: the new-default P-384, Ed25519 and the ML-DSA-44 hybrid. I logged in from the new build and from the stock OpenSSH 9.6p1 client that ships with Ubuntu 24.

Terminal: new and Ubuntu 9.6 clients log in with Ed25519 and P-384 keys; the 9.6 client is denied with the hybrid key
An old client takes the new default key but not the hybrid.

Ed25519 and P-384 keys worked from every client. The new client chose the hybrid host key. The Ubuntu client chose Ed25519 and connected without trouble. The one failure was a hybrid user key from the Ubuntu client, which was denied because that release predates the hybrid. An ML-DSA-87 key logged in from the new build once I allowed it on both ends, since the second hybrid isn’t on by default.

Other clients haven’t all caught up. An open issue on Win32-OpenSSH says its preview is still on 10.4 and lacks the 10.6 hybrid name. The IETF draft lists Bitvise as supporting it. GitHub’s docs list RSA, ECDSA and Ed25519 public key files and no hybrid, and a docs issue opened on 3 December asks GitHub to review its Ed25519 recommendation.

Why now

The commit messages give no reason, but the timing is documented. On 2 December the NSA told operators of national security systems to speed up their move to post-quantum cryptography. Its advisory tells owners to inventory algorithms that aren’t approved in CNSA 1.0 or 2.0, and its examples include “elliptic curves other than P-384 or P-521 for ECDH or ECDSA, EdDSA”. That puts P-384 on the approved side and Ed25519 off it. The new OpenSSH default lands on the approved side.

Timeline: 2 Dec NSA advisory, 3 Dec OpenSSH default key change, 5 Dec OpenAI and Anthropic statement
Three steps in one week. Illustration: Sulat.

Cryptographer Filippo Valsorda reads the advisory as saying 256-bit curves, which covers P-256 and Ed25519, are likely broken or weaker than thought, and that P-384 and RSA might do as a stopgap. His advice includes updating to OpenSSH 10.6 and rotating to ssh-mldsa44-ed25519 keys. That’s his reading, not the NSA’s.

On 5 December OpenAI and Anthropic said researchers at each company, testing unreleased models, separately found weaknesses in “some of the cryptography that protects the internet”. They said NIST’s post-quantum standards don’t share them, and they didn’t name the algorithms. The OpenSSH commit messages don’t mention any of this.

Other projects moved the same way that week. Chrome said it will stop trusting P-256 CA keys from 15 March 2027, as I covered in my Chrome piece. Mozilla plans to promote P-384 where hybrid key exchange isn’t available, and Let’s Encrypt recommends that ACME clients default to 384-bit ECDSA keys. My post-quantum checklist covers the server side.

Where the OpenSSH commits come from

The 10.6 release notes say the team has received a large number of security reports, many of them found by AI models or with AI help. Several AI-found bugs were later found independently by other researchers, so the team is making more frequent releases. I counted the git log of the portable repository: 203 of the 281 commits since 26 October name Anthropic or carry an ANT-2026 report number in the message. The 10.6 notes also credit Chris Rohlf, working with Claude and Anthropic Research, for suggesting that key types be checked as early as parse time.

The latest release is 10.6p2, from 5 November. It has the ML-DSA-44 hybrid but not the new defaults, and I found no announcement of the release that will carry them.

What to do

  1. Check your version with ssh -V. Nothing changes until you run a release that includes these commits.
  2. Leave existing keys alone. Ed25519 keys keep working.
  3. In scripts and onboarding guides that call ssh-keygen with no type, add the type you want, so a new release can’t change it.
  4. Use a hybrid only where both ends run 10.6 or later and the host you’re logging in to accepts it.
Code
ssh -V
ssh-keygen -t ed25519 -C "[email protected]"
ssh-keygen -t ecdsa -b 384 -C "[email protected]"
ssh-keygen -t mldsa44-ed25519 -C "[email protected]"
ssh-keygen with no -t gets the current default; add -t so a new release can't change your key type
Naming the type keeps it from changing under you. Illustration: Sulat.

What I didn’t test

I ran everything on loopback on one machine. I didn’t test GitHub, GitLab or other hosts with a P-384 or hybrid key, Windows OpenSSH, FIDO keys, whose types are still only ed25519-sk and ecdsa-sk, or any distro package, because no release carries the change.

Sources: OpenSSH commit 5b63da2; commit 0b47a8f; commit 310181f; commit fc6f265; OpenSSH 10.6 release notes; OpenSSH release notes; draft-ietf-sshm-composite-sigs-01; NSA, “Immediate Actions to Push Toward Post-Quantum”; Filippo Valsorda, “What to Make of the NSA Advisory”; OpenAI and Anthropic joint statement, 5 December; GitHub, checking for existing SSH keys; Win32-OpenSSH issue 2504.

Disclosure: I’m an OpenAI, Firecrawl and Devin ambassador.