Quick Answer: OpenSSH's commit "switch default key type generated to ECDSA NISTP384" changes the default that
ssh-keygenuses when you don't pass-t. New keys will be ECDSA on the NIST P-384 curve instead of the previous default. Existing keys keep working, so you don't need to replace anything. Check your own tooling and any hardware-token workflows before you rely on the new default.
The ssh-keygen default key type is one of those settings almost nobody thinks about until a key shows up in a new place and something breaks. A commit to the OpenSSH portable repository now changes what gets generated when you run ssh-keygen with no arguments. This piece explains what the change does, what it doesn't do, and where the real risks sit. I haven't been able to read the full diff from the fetched source, which only includes the project README, so I'll stick to what the commit title states and the well-documented behavior of these key types.
What the commit actually changes
The commit, visible on GitHub, switches the key type that ssh-keygen generates when you don't specify one. Before, a bare ssh-keygen produced a different type. After, it produces ECDSA keys on the NIST P-384 curve, which OpenSSH names ecdsa-sha2-nistp384 on the wire and nistp384 internally.
The important thing is scope. This is a default for generation. It doesn't remove any algorithm, it doesn't change how existing keys authenticate, and it doesn't touch sshd configuration. Anyone who already has ~/.ssh/id_* files keeps using them.
You can request the same key type explicitly on any version that supports it:
ssh-keygen -t ecdsa -b 384 -f ~/.ssh/id_ecdsa384
Writing -t and -b explicitly is a good habit regardless of what the default is. Scripts that rely on implicit defaults are the ones that break when the defaults move.
Why P-384 and not something else
ECDSA over P-384 is a NIST-standardized elliptic curve signature scheme, specified in FIPS 186 and defined alongside the other NIST prime curves in SP 800-186. NIST's guidance in SP 800-57 places P-384 at roughly a 192-bit security strength, compared with about 128 bits for P-256. Ed25519 is generally placed around the same 128-bit level as P-256.
So the change moves the default toward a larger security margin, and it aligns with environments that need NIST-approved algorithms. Government, defense, and regulated-industry deployments often have written requirements for FIPS-approved primitives, and that's the most likely reason a default like this gets chosen.
Here's the tradeoff, though. Bigger keys cost more CPU time and produce larger public keys and signatures. For a typical interactive login, the difference is negligible. For a server handling thousands of authentications per second, you'll notice it in benchmarks. Most administrators will never hit that limit, but automated fleets sometimes do.
The counter-intuitive part: curve size is rarely the weak link
Most guides treat "bigger curve" as "safer key," and that framing is incomplete. For ECDSA specifically, the dangerous failure is not brute-forcing the private key. It's getting the per-signature nonce wrong.
Every ECDSA signature uses a random value k. If k is ever reused across two signatures, or is predictable, an attacker can solve for the private key with simple algebra, regardless of whether the curve is P-256 or P-384. This is not theoretical. The 2010 failure in Sony's PlayStation 3 code signing, where a fixed nonce was reused, exposed the signing key. Weak randomness has caused similar problems in cryptocurrency wallet software over the years.
This is exactly why Ed25519 is often preferred for SSH. Its signing process derives the nonce deterministically from the private key and message, so it doesn't depend on a live random number generator at signing time. You still need good randomness for key generation, but the ongoing exposure is smaller.
So the honest summary is this: P-384 doesn't make ECDSA immune to nonce problems. It makes the curve harder to attack by brute force, which matters less than the implementation and entropy source in most real incidents. If your random number generator is solid, P-384 is a reasonable choice. If it's not, a bigger curve gives you a false sense of safety.
Where ECDSA P-384 keys will run into trouble
The most important practical limit involves hardware security keys. OpenSSH's FIDO2 support, which uses ecdsa-sk and ed25519-sk key types, works with the curves defined by the FIDO standard. The ecdsa-sk type is built on NIST P-256, not P-384. Anyone who expects a YubiKey or similar token to produce a P-384 key will be disappointed. Tokens generally offer P-256 for ECDSA and Ed25519 for the other option.
That means a P-384 default doesn't apply to your hardware-backed keys, which is fine, but scripts that generate keys with a bare ssh-keygen and then try to store them on a token will behave differently than you expect.
Compatibility with older software is the other concern. Most modern SSH implementations support ecdsa-sha2-nistp384, but embedded devices, legacy appliances, and some older client libraries may only support P-256 or RSA. If you manage network gear that hasn't been updated in years, test the new key type against it before you roll it out. Those devices don't always fail loudly. Sometimes the connection just gets refused with an unhelpful error.
Here's a quick comparison of the main key types you're likely to choose between:
| Key type | Curve or basis | Approx. security strength (NIST SP 800-57) | Typical use case |
|---|---|---|---|
ECDSA P-256 (nistp256) | NIST P-256 | ~128 bits | Broad compatibility, FIDO2 ecdsa-sk |
ECDSA P-384 (nistp384) | NIST P-384 | ~192 bits | FIPS-aligned environments, new default |
| Ed25519 | Curve25519 | ~128 bits | Deterministic nonces, small keys, general use |
| RSA-3072 | Integer factorization | ~128 bits | Maximum legacy compatibility |
Note that Ed25519 and P-256 are both around 128 bits, so the choice between them is mostly about compatibility, nonce handling, and hardware support rather than raw strength.
What to do before this lands in your environment
Start by finding out whether anything depends on the default. Run grep -r "ssh-keygen" your-automation/ on your build servers and configuration repositories. Any bare ssh-keygen call is now a silent change in behavior, and that's the kind of thing that surfaces at 2 a.m.
Then decide your policy explicitly rather than inheriting one. A reasonable set of choices for most teams looks like this:
- Pin the key type in every script with
-tand-bso the output doesn't depend on the local OpenSSH version. - Standardize on Ed25519 for new human user keys unless a compliance rule requires NIST curves.
- Use P-384 where FIPS 186 alignment is required, and confirm that your OpenSSL or LibreSSL build provides the algorithm.
- Use
ecdsa-skored25519-skfor hardware-backed keys, and don't expect P-384 there.
Test on one system first. Generate a key, install it on a test account, and confirm login works with ssh -v so you can see which key type is being offered and accepted.
Frequently Asked Questions
What is the default key type for ssh-keygen now?
With this commit, a bare ssh-keygen generates an ECDSA key on the NIST P-384 curve. Pass -t ed25519 or -t ecdsa -b 256 if you want a different type. Scripts should always specify -t explicitly so they don't depend on the local default.
How do I generate an ECDSA NISTP384 key with ssh-keygen?
Run ssh-keygen -t ecdsa -b 384 -f ~/.ssh/id_ecdsa384. The -b 384 flag selects the P-384 curve, and -f sets the file path. Then copy the public key to your server's ~/.ssh/authorized_keys. Existing keys aren't affected by the change.
Why does ssh-keygen default to ECDSA NISTP384 instead of Ed25519?
The commit title doesn't state the rationale, and I couldn't verify the discussion from the fetched material. The most likely driver is alignment with NIST-approved algorithms for FIPS-constrained environments. Ed25519 is still widely recommended for general use because its deterministic nonce removes a class of implementation failures.
Will P-384 keys work with my YubiKey or other FIDO2 token?
Not in the same way. OpenSSH's FIDO2 key types (ecdsa-sk and ed25519-sk) are built on P-256 and Ed25519 respectively, not P-384. You can still use those types for hardware-backed keys, but the new default doesn't change what your token generates.
Keep your SSH key choices deliberate
Defaults are convenient until they change under you. The new ECDSA NISTP384 default is a reasonable move for teams that need a larger NIST curve, but it's not automatically the right choice for every environment, and it doesn't fix weak randomness or hardware token limits. Pin your key type in scripts, test against your oldest critical endpoints, and document the choice. Pass this to whoever maintains your bastion hosts or CI key generation, especially if they're still running bare ssh-keygen in automation.