OpenSSH commit switches ssh-keygen default key to ECDSA NIST P-384

OpenSSH commit switches ssh-keygen default key to ECDSA NIST P-384

A commit to the openssh-portable repository, 5b63da2, changes which kind of key ssh-keygen creates when you do not ask for a specific type. The commit title reads: "upstream: switch default key type generated to ECDSA NISTP384; ok". The page lists djmdjm as the author, and the message body credits markus@ and carries an OpenBSD-Commit-ID (c5bfb4c2067444ca95dd72cc4fd8ddd6e12a15c4). The "upstream:" prefix and that ID mark it as a sync of a change made in OpenBSD.

The change is small: one file, ssh-keygen.c, with 3 lines added and 3 removed. The diff does three things. It bumps the OpenBSD version header from revision 1.512 to 1.513, with a new timestamp. It changes DEFAULT_KEY_TYPE_NAME from "ed25519" to "ecdsa". And it changes DEFAULT_BITS_ECDSA from 256 to 384, which selects the NIST P-384 curve instead of the 256-bit one.

In effect, running ssh-keygen without a type flag now generates an ECDSA key with NIST P-384 instead of an Ed25519 key. That reading comes from the page's summary of the diff, not from the commit message, which says only what its title says. The page text gives no commit date and no reasoning for the switch.

Key facts

  • Commit 5b63da2 in openssh-portable changes ssh-keygen's default generated key type from Ed25519 to ECDSA with NIST P-384.
  • The diff touches one file, ssh-keygen.c: DEFAULT_KEY_TYPE_NAME goes from "ed25519" to "ecdsa" and DEFAULT_BITS_ECDSA from 256 to 384.
  • The change is 3 lines added and 3 removed, and bumps the OpenBSD revision of the file from 1.512 to 1.513.
  • The commit is listed under djmdjm, credits markus@, and is marked as an upstream sync with an OpenBSD-Commit-ID.
  • The page gives no rationale, no commit date and no OpenSSH release that ships the change.

Why it matters

ssh-keygen is the standard way people create SSH keys, and the default it picks is what most users end up with when they type the bare command. This commit moves that default from Ed25519 to ECDSA on NIST P-384. The edit is tiny, but a default changes behaviour for everyone who does not choose a type explicitly. The page offers no reasoning for the switch, so the motivation is not something this account can state.

Who it affects

The change concerns anyone who runs ssh-keygen without a type flag: the newly generated key would be ECDSA P-384 rather than Ed25519. The source does not say whether existing keys are affected, or whether the change reaches a release.

How to use it

Nothing needs doing from the commit alone. If you want a particular key type regardless of what the default becomes, pass the type flag to ssh-keygen explicitly; the commit's description is that only the no-flag case changes. Whether and when this lands in an OpenSSH release is not stated.

How solid is it

The commit is a primary source: it is in the openssh-portable repository, and its three diff changes are consistent with its title. The text available is a summary of the commit page rather than the raw page, and the full commit message body is not reproduced. The "in effect" statement about ssh-keygen's behaviour is the page summary's reading of the diff, not the commit message's.

Risks and caveats

No rationale for the change is given (no security, compatibility or policy reasoning). No release or version of OpenSSH is named as shipping it, and the page does not say whether the change affects existing keys. No commit date appears in the page text. Treat it as a commit in the repository, not as a confirmed change in a shipped OpenSSH version.

“upstream: switch default key type generated to ECDSA NISTP384; ok”

— Commit message, openssh-portable commit 5b63da2