OpenSSH Switches Its Default SSH Key to ECDSA P-384
OpenSSH Switches Its Default SSH Key to ECDSA P-384
OpenSSH’s development tree has changed the key that ssh-keygen creates when no type is specified. A commit dated December 3, 2026 by Damien Miller makes ECDSA on the NIST P-384 curve the default instead of Ed25519. The change is not in a release yet; the newest release is 10.6p2.
The practical effect is simple. A new laptop, a fresh CI runner or a tutorial that runs ssh-keygen without -t will produce a P-384 key after the next release. Ed25519 is not removed or deprecated. Existing keys keep working, and ssh-keygen -t ed25519 still creates an Ed25519 key.
What changed
The commit is 5b63da24 in the portable OpenSSH repository. It changes the default algorithm for new keys and also makes -t ecdsa without -b produce 384-bit keys instead of P-256. Ed25519 had been the default since OpenSSH 9.5 in October 2023.
A second commit the same morning moves the hybrid mldsa44-ed25519 key type to the top of the default signature algorithm order. On December 5 the project added a stronger mldsa87-p384 hybrid, but it is not enabled by default. None of this changes the key type of an existing key or forces a rotation.
Why the default matters
Defaults are what most operators get without reading a manual. Setup scripts, cloud-init templates, onboarding guides and copied commands rarely pass -t. Changing the default changes the key type those paths produce, even though the command looks unchanged.
That is the reason to pin the type explicitly if you care about it. A script that needs Ed25519 should say -t ed25519. A script that wants the new P-384 default should say -t ecdsa -b 384. Relying on the implicit default means the next OpenSSH release can change the output without changing the script.
What it does not mean
This is not a key-compromise response. The commit gives no rationale, and OpenSSH has not said that Ed25519 is broken. The change landed shortly after the December 2 NSA advisory urging faster post-quantum migration, but the commit does not claim the advisory caused it. Treat the timing as context, not proof of a vulnerability.
It also does not mean every host will accept the new key type. Git hosting services, older servers, hardware security keys and appliance SSH stacks each have their own supported algorithm list. Test a new key against every destination before replacing the key a workflow depends on. FIDO security keys still use ed25519-sk or ecdsa-sk; there is no post-quantum hardware-key option in the current man page.
An operator checklist
- Run
ssh -Vand record the OpenSSH versions in your fleet. The default change is not released, so nothing changes on a current 10.6p2 host yet. - Search onboarding docs, cloud-init, CI images and setup scripts for bare
ssh-keygencalls. Add an explicit-twhere the key type matters. - If you want to test P-384 or a hybrid key, add the new public key alongside the old one in
authorized_keys. Keep the old line until every server and Git host accepts the new key. - Do not rotate existing Ed25519 keys just because the default changed. Rotate on your normal schedule, or when a specific host cannot accept the key type you need.
- If you operate a Git forge or SSH gateway, check which signature algorithms it accepts. A client default that the server rejects is a support ticket, not a security improvement.
The change is a default, not a deprecation. The safe response is to stop relying on defaults and make the key type an explicit part of the setup path.
