---
title: "OpenSSH: ssh-keygen swaps Ed25519 for 384-bit ECDSA as its default"
description: "An OpenSSH commit dated 3 December 2026 changes the key ssh-keygen makes when you don't ask for anything: 384-bit ECDSA instead of Ed25519. It's only three lines of code, but they decide what the next key you create on autopilot will be."
canonical: https://inyourgeek.com/en/articles/2026-12-05-openssh-ssh-keygen-troque-ed25519-contre-ecdsa-384-bits
type: article
author: "Sébastien Soulier"
publisher: "InYourGeek"
language: en
datePublished: 2026-12-05
dateModified: 2026-12-05
section: "Software"
tags: ["openssh", "ssh", "cryptographie", "ecdsa"]
---
# OpenSSH: ssh-keygen swaps Ed25519 for 384-bit ECDSA as its default
> An OpenSSH commit dated 3 December 2026 changes the key ssh-keygen makes when you don't ask for anything: 384-bit ECDSA instead of Ed25519. It's only three lines of code, but they decide what the next key you create on autopilot will be.
December 5, 2026 · Software · 3 min
On 3 December 2026, a three-line change landed in `ssh-keygen.c`, the source file for the tool that makes SSH keys, in the [openssh-portable repository](https://github.com/openssh/openssh-portable/commit/5b63da24d393ec5f08ec4371e09b692fc86587a8). It hit Hacker News on 5 December. The diff is so short that you can read every line of it before your coffee goes cold.

## What the diff says

Three lines added, three removed. The constant `DEFAULT_KEY_TYPE_NAME` sets the key type you get when you run ssh-keygen without naming one. It goes from `"ed25519"` to `"ecdsa"`. Just below it, `DEFAULT_BITS_ECDSA`, the default size of an ECDSA key, goes up from 256 to 384. The third line is the file's version header, which moves from revision 1.512, dated 29 November 2026, to 1.513, dated 3 December.

The default RSA key size doesn't move: `DEFAULT_BITS` stays at 3072. The comment above these values still points to the same reference text, "Management Part 1 rev 4 section 5.6.1". The constants have changed. The comment hasn't heard the news.

## For your new keys

Once this change ships in a release, anyone who types `ssh-keygen` and hits Enter through every prompt without reading will get a 384-bit ECDSA key instead of an Ed25519 one. You've done it. We've all done it, usually late on a Friday, on a box that was installed twenty minutes earlier. If you name the type you want, nothing changes for you: the modified constant only kicks in when you let the tool choose.

One question is still open: the source gives no version number. So nobody knows which OpenSSH release will behave like this, or when it will reach your distribution. For now it's a commit in a repository, not software running on your machine.

## And your existing keys

The commit touches one file, `ssh-keygen.c`, and only the default values used when generating a key. Nothing in this diff changes how keys you already have are read, accepted or rejected. Going by what the change shows, an Ed25519 key you generated before will keep working as it always has. No forced migration, and no key rotation to schedule because of these three lines.

The likely effect is somewhere else: fleets where the old keys are Ed25519 and the new ones are ECDSA, without anyone ever deciding that. Your key inventory will start to look like tree rings, and you'll be able to tell roughly when an account was created just from its algorithm.

## Why everyone's talking about it

The commit page, as it was shared around, has no explanation, and the comment counter sits at zero. That's the problem. A default is one of the most powerful settings a tool has, because it applies to everyone who doesn't read the docs, which is most people. This one changes with no public reasoning in the source we have.

The questions write themselves. Why replace the type that was the default until now? And if you're moving to ECDSA, why bump its default size from 256 to 384 bits at the same time? The sources don't say, and we're not going to make up an answer for them. Until someone publishes the reasoning, everyone fills the gap with their own theory, and that's exactly how a comment thread grows to three hundred replies.

Three lines changed, zero comments under the commit: turns out "no explanation given" ships as a default too.
## Sources
- [OpenSSH: "switch default key type generated to ECDSA NISTP384"](https://github.com/openssh/openssh-portable/commit/5b63da24d393ec5f08ec4371e09b692fc86587a8) — github.com
_Article written with AI assistance from the cited sources, reviewed and approved by a human before publication._

---

Equivalent HTML page : https://inyourgeek.com/en/articles/2026-12-05-openssh-ssh-keygen-troque-ed25519-contre-ecdsa-384-bits
Published by InYourGeek — https://inyourgeek.com/en/a-propos
Method and safeguards : https://inyourgeek.com/en/methode
All articles : https://inyourgeek.com/en/archives
