# OpenSSH switches its default key type from Ed25519 to ECDSA P-384

> The change is in the development tree, not a release, and the developers gave no reason. Signatures now prefer a post-quantum hybrid first.

URL: https://claudegpt.si/news/openssh-default-key-type-ecdsa-p384  
Published: 2026-12-05T22:59:29.552Z  
Updated: 2026-12-05T23:02:12.554Z  
Author: ClaudeGPT Si Newsroom  
Section: AI Tools  
Topics: Cryptography, Encryption, Open source, Developer tools, Security  
Publisher: ClaudeGPT Si

## Key takeaways

- A December 2026 commit makes ssh-keygen generate ECDSA P-384 keys by default in place of Ed25519.
- It is in the development tree only: OpenSSH 10.6p2, the newest release, still defaults to Ed25519, and existing keys are unaffected.
- The developers gave no reason. A companion commit makes the post-quantum hybrid ssh-mldsa44-ed25519 the preferred signature algorithm, ahead of ECDSA P-384.

OpenSSH has changed the key that `ssh-keygen` makes when you don't ask for a type. A [commit by maintainer Damien Miller](https://github.com/openssh/openssh-portable/commit/5b63da24d393ec5f08ec4371e09b692fc86587a8), which reached the portable repository on December 5, 2026, sets the OpenSSH default key type to ECDSA on the NIST P-384 curve. The default had been Ed25519.

The change is in the development tree, not in a release. The newest release is [OpenSSH 10.6p2](https://www.openssh.org/releasenotes.html), from November 5, and it still generates Ed25519 keys by default. Nothing happens to keys you already have.

## Three lines of code, no stated reason

The whole commit is three changed lines in `ssh-keygen.c`. The default type name goes from `ed25519` to `ecdsa`, and the default ECDSA size goes from 256 bits to 384. The commit message says only: "switch default key type generated to ECDSA NISTP384".

The developers have not explained why. The timing is hard to ignore, though. Earlier in the week, the NSA and CISA [urged a faster move to post-quantum encryption](https://claudegpt.si/news/nsa-post-quantum-cryptography-alert), and on December 5 [OpenAI and Anthropic confirmed](https://claudegpt.si/news/openai-anthropic-cryptography-weaknesses-statement) that their unreleased models had found weaknesses in "some of the cryptography that protects the internet". The labs' statement names no algorithm or curve, and says the findings do not affect NIST's post-quantum standards. The OpenBSD Journal, which [reported the changes](https://www.undeadly.org/cgi?action=article;sid=20261205121940), also gives no reason and only sets them against those announcements.

So what can be said is narrow. OpenSSH's developers moved the default from Ed25519 to a larger NIST curve in the same week that US agencies and two AI labs said something is wrong with current cryptography. Whether Ed25519 itself is affected is not public.

## Signatures now prefer a post-quantum hybrid

Two related commits landed alongside it. [One reorders](https://github.com/openssh/openssh-portable/commit/310181f) the signature algorithms OpenSSH prefers. First choice is now `ssh-mldsa44-ed25519`, which the release notes describe as a hybrid post-quantum signature algorithm: it pairs Ed25519 with ML-DSA 44. Second is ECDSA P-384. Plain Ed25519 drops to third.

The other adds a new hybrid key type, `ssh-mldsa87-p384`, which combines ML-DSA 87 with ECDSA P-384. Per its commit message it is "not yet enabled by default".

That ordering suggests P-384 is a stopgap. The hybrid is what OpenSSH would rather use, but `ssh-mldsa44-ed25519` was only enabled in 10.6p1, released October 6, after starting as an off-by-default experiment in 10.4 in July. Older servers and clients can't read it. ECDSA P-384 is not new. OpenSSH 9.6p1 generated one without complaint when the command below was run on it for this article.

## What to do with your keys

Nothing changes until a release ships with the new default, and OpenSSH has not said when that will be. Even then, a new default affects only keys generated afterward with a bare `ssh-keygen`. Existing Ed25519 keys keep working, and you can still ask for any type with `-t`.

To see what you have now, run `ssh-keygen -l -f ~/.ssh/id_ed25519.pub` (or the path to your public key). The output ends with the key type in brackets. To generate a P-384 key today (the [full SSH key guide](https://claudegpt.si/news/how-to-generate-ssh-key) covers every step, and [ECDSA vs Ed25519](https://claudegpt.si/news/ecdsa-vs-ed25519) compares the types):

```bash
ssh-keygen -t ecdsa -b 384
```

The next thing to watch is the release notes for the version after 10.6p2. That is where the OpenSSH developers usually explain a change like this one.

## Sources

- [upstream: switch default key type generated to ECDSA NISTP384](https://github.com/openssh/openssh-portable/commit/5b63da24d393ec5f08ec4371e09b692fc86587a8), OpenSSH
- [upstream: actually change the default signature algorithm](https://github.com/openssh/openssh-portable/commit/310181f), OpenSSH
- [OpenSSH release notes](https://www.openssh.org/releasenotes.html), OpenSSH
- [Cryptography changes in OpenSSH](https://www.undeadly.org/cgi?action=article;sid=20261205121940), OpenBSD Journal
