P.K. SHARMA

Cyber security intelligence, AI governance, practitioner analysis

OpenSSH commit switches the default ssh-keygen key to ECDSA P-384; no release carries it yet

OpenSSH development code now makes ECDSA P-384, not Ed25519, when ssh-keygen is given no type. The commit gives no reason. Scripts that rely on the default are the thing to check. Read on 5 December 2026.

By · LinkedIn · · 9 min read

Two defaults changed, and no release has them yet

A commit to OpenSSH dated 3 December 2026 changes three lines in one file, ssh-keygen.c. One is a revision stamp. The other two change what the key generator does when nobody tells it otherwise: the default key type goes from Ed25519 to ECDSA, and the default size of an ECDSA key goes from 256 to 384 bits. The commit subject reads "switch default key type generated to ECDSA NISTP384".

The two changed settings, as shown on the commit page on 5 December 2026.

The change is in source code, not in a release. The project home page lists Portable OpenSSH 10.6p2, released on 5 November 2026, as the newest, which is 28 days before the commit date (derived). The source tagged for 10.6p2 still sets Ed25519 and 256 bits. So an installation of an official release behaves as before, as read between 22:37 and 22:41 UTC on 5 December 2026. This site did not check whether any operating system distributor or snapshot build already carries the change.

The commit also does not establish why. Its message gives no reason, and nothing read for this briefing reports a weakness in Ed25519.

What changed, and where it stands

The portable repository marks the commit as taken from upstream OpenBSD, with a note that a second developer approved it. The commit page shows it authored on 3 December at 08:40:32 UTC and committed to the portable tree on 5 December at 20:43:33 (UTC+11). On the master branch, read the same evening, both new values were still there, with the file by then at a further revision dated 5 December. Compared with the file at the commit, the master copy adds a key type name, mldsa87-p384, and leaves the default lines alone. This site compared file contents and did not read the commit history.

This site's drawing from the 10.6p2 and master versions of ssh-keygen.c and the manual, read on 5 December 2026. Outcomes are derived from the code and were not run.

Ed25519 has been the released default for more than three years. The release notes for OpenSSH 9.5, dated 4 October 2023, list "generate Ed25519 keys by default" as a potentially incompatible change, 1,156 days before the new commit (derived). The notes gave the small size of Ed25519 public keys as a convenience.

The manual is half updated. The OpenBSD manual page, dated 26 November 2026, says that run with no arguments the program will generate an Ed25519 key. In the development copy of the manual, revised on 5 December, the list of -t values now marks ecdsa as the default, while the opening description still says an Ed25519 key is generated. Where the two lines disagree, the code is what runs.

It reaches further than the plain command

A default is a friendly word for a choice that somebody else can change. A script that runs ssh-keygen without -t has never controlled its key type; it has only agreed with whatever the installed version preferred. Reading the code around the two lines, this site finds four effects beyond the headline. All are derived from the source and none was compiled or run.

Effects beyond the plain command, from the code at the commit and on master (derived)

SituationReleased 10.6p2Development code
-t ecdsa given, no -b256 bit ECDSA key384 bit ECDSA key
-b 4096 given, no -tEd25519 key; size ignoredStops with an invalid ECDSA key length error
-A, host with no ECDSA key256 bit ECDSA host key384 bit ECDSA host key
No -t and no -f, when creating a keySuggests the id_ed25519 fileSuggests the id_ecdsa file

The second row is the one to search for. ECDSA accepts only 256, 384 or 521 bits, so a command such as ssh-keygen -b 4096, which relies on the size being ignored or on an older habit, would fail on the new code rather than produce a different key. For -A, the manual says it generates host keys of all default types if they do not already exist, using default bits, and that /etc/rc uses it. The commit does not change which types -A makes; Ed25519 stays among them. Existing host key files that are not empty are skipped.

There is also a leftover. Elsewhere in ssh-keygen.c, when no type is given for an operation on an existing key, such as showing a fingerprint or changing a passphrase, the suggested file is still id_ed25519. A person who creates a key with the new code and then runs such an operation without -f may be offered the wrong file. The ssh client's default identity files include both ~/.ssh/id_ecdsa and ~/.ssh/id_ed25519, so a new key in either default place is found without configuration.

One build option deserves a test. The release notes record that Portable OpenSSH can be built with --without-openssl. In the key type table, ECDSA exists only in builds with OpenSSL, and the new default line carries no exception. On this site's reading, plain ssh-keygen on such a build of the development code would stop with an unknown key type message. Projects that ship minimal builds should try it before relying on it, and the code may well change before a release.

What the change leaves alone

This site's drawing from the commit, the code and the OpenSSH post-quantum page, read on 5 December 2026.

The patch touches no ssh or sshd file, so it does not alter which host key algorithm a client prefers, what a server accepts or how session keys are agreed. The current server configuration manual already lists ecdsa-sha2-nistp384 among the default accepted public key signature algorithms, and the release notes say the ECDSA types have been supported since OpenSSH 5.7.

Nor is this a post-quantum step. The project's post-quantum page says "most currently-used signature algorithms (including RSA and ECDSA) can be broken by a quantum computer". A larger curve does not change that. What OpenSSH has done about quantum risk sits mainly elsewhere: the same page says mlkem768x25519-sha256 became the default key agreement in OpenSSH 10.0 (April 2025), and key agreement protects the session, not the identity key.

On signatures the page lags the releases. It still says support for post-quantum signature algorithms will come in the future, while the 10.6 release notes enable a hybrid post-quantum signature algorithm, ssh-mldsa44-ed25519. Neither that type nor the new mldsa87-p384 name is the default in the code read.

What the record states, and what it does not

Read on 5 December 2026 from the commit, the source, the release notes and the manual

QuestionStatedNot stated
Reason for the switchOnly the subject line of the commitWhy ECDSA, or why P-384
Ed25519No longer the default in development codeAny flaw or weakness; removal of support
ReleaseNewest release listed is 10.6p2Which version will carry it, or when
Existing keysPatch changes generation defaults onlyAny need to rotate or replace them
ComplianceThe commit names no standard in its messageThat any rule or regulator asked for it
Outside eventsThe commit message refers to noneA link to other cryptography news this week

One more limit applies to the first row. The project's mailing list page says its developer list is archived by MARC. MARC's robots file bars automated access, as does that of the OpenBSD web view of its source history, and the list server did not answer. A reason may have been given in public somewhere this site did not read. The code comment next to the sizes, which cites a NIST key management publication, was already there when the ECDSA default was 256, so it is not an explanation of the change.

What to do, in order

These are this site's suggestions. None of this is urgent for a system on an official release, and the change alone is no reason to rotate keys.

Take this with you

Before an upgrade that carries the change

  • Search provisioning scripts, container builds, CI jobs and configuration management for ssh-keygen calls with no -t option.
  • Pin the type you want. To keep the current behaviour, pass -t ed25519; where you use -t ecdsa, pass -b as well so the size is your choice.
  • Find calls that pass -b without -t. State -t rsa if an RSA key of that size is what they meant.
  • Check anything that reads ~/.ssh/id_ed25519.pub straight after generating a key, and name the file with -f.
  • Confirm that servers, network appliances, Git hosting and access brokers you connect to accept ecdsa-sha2-nistp384, and that your own policy lists it if you allow it.
  • Review restrictive algorithm lists. Since OpenSSH 10.3 a list naming one ECDSA algorithm no longer admits the other ECDSA sizes.
  • If your build process for new hosts records or pins host key types, expect a P-384 ECDSA host key where it expected P-256.
  • Test minimal builds without OpenSSL, and watch the release notes for the version that first lists the new default.

The changed lines, and how to see what you have

The two behaviour changes, copied from the patch. The third changed line in the file is its revision stamp, which moves from 1.512 to 1.513.

diff
-#define DEFAULT_KEY_TYPE_NAME "ed25519"
+#define DEFAULT_KEY_TYPE_NAME "ecdsa"
OpenSSH commit to ssh-keygen.c, read 5 December 2026
diff
-#define DEFAULT_BITS_ECDSA	256
+#define DEFAULT_BITS_ECDSA	384
OpenSSH commit to ssh-keygen.c, read 5 December 2026

The size check that a -b value now meets when no type is given:

c
	case KEY_ECDSA:
		if (sshkey_ecdsa_bits_to_nid(*bitsp) == -1)
			fatal("Invalid ECDSA key length: valid lengths are "
			    "256, 384 or 521 bits");
ssh-keygen.c on the OpenSSH master branch, read 5 December 2026

To look at existing keys without changing them, the manual prints this form for showing a fingerprint. According to the sshd manual, a public key line holds options, key type, encoded key and comment, with options optional, so in an ordinary .pub file the first field names the type. Name the file with -f.

Text
ssh-keygen -l [-v] [-E fingerprint_hash] [-f input_keyfile]
OpenBSD ssh-keygen manual, read 5 December 2026

The server configuration manual prints these two commands for listing available algorithms. They show what a program supports, not what a particular server or policy accepts.

Text
ssh -Q PubkeyAcceptedAlgorithms
ssh -Q HostKeyAlgorithms
OpenBSD sshd_config manual, read 5 December 2026

The question the change asks of your estate

Three lines can change which key a fleet creates, and they would arrive inside an ordinary upgrade. If every new machine and pipeline started producing ECDSA P-384 keys next quarter, would you know which of your systems chose that, which merely accepted it, and which would stop working?

Key facts

Sources

  1. PrimaryCommit switching the default generated key type to ECDSA NISTP384, 3 December 2026; the basis for this briefingOpenSSH (portable repository)accessed 2026-12-05
  2. Primaryssh-keygen.c on the master branch, revision 1.514: current defaults, size check, -A and file name handlingOpenSSH (portable repository)accessed 2026-12-05
  3. Primaryssh-keygen manual source on the master branch, revision 1.251OpenSSH (portable repository)accessed 2026-12-05
  4. Primaryssh-keygen.c as tagged for 10.6p2: released defaultsOpenSSH (portable repository)accessed 2026-12-05
  5. Primaryssh-keygen manual source as tagged for 10.6p2OpenSSH (portable repository)accessed 2026-12-05
  6. Primarysshkey.c at the commit: which key types depend on OpenSSLOpenSSH (portable repository)accessed 2026-12-05
  7. PrimaryRelease notes: 10.6p2 and 10.6, 10.3, 9.5 and the ECDSA and build option entriesOpenSSHaccessed 2026-12-05
  8. PrimaryHome page: newest releases listedOpenSSHaccessed 2026-12-05
  9. PrimaryPost-quantum cryptography page: key agreement and signature algorithmsOpenSSHaccessed 2026-12-05
  10. PrimaryMailing list page: where the developer list is archivedOpenSSHaccessed 2026-12-05
  11. Primaryssh-keygen manual page, dated 26 November 2026OpenBSDaccessed 2026-12-05
  12. Primaryssh_config manual page: default identity filesOpenBSDaccessed 2026-12-05
  13. Primarysshd_config manual page: default algorithms, host key files and ssh -QOpenBSDaccessed 2026-12-05
  14. Primarysshd manual page: fields of a public key lineOpenBSDaccessed 2026-12-05

Share this briefing

Know someone who owns this problem? Send it to them.

Related briefings

The briefing, in your inbox

Practitioner analysis of cyber and AI security news. No vendor noise.

How often

Every new briefing in one email, at 7am, or at 7am, 12:30pm and 6pm. Nothing is sent when nothing is new. Unsubscribe any time.