ZICQ
中 Log in / Sign up
ZICQ Info Industry & Trends #OpenSSH #ECDSA #NIST P-384 #SSH Key Management

OpenSSH Switches Default Generated Keys to ECDSA NIST P-384

Avatar of Mr.Xu

By Mr.Xu Community Post

Published:

中文阅读 (Chinese) English Version
Co-reading Select any sentence in the article to highlight, annotate, or copy a quote card. Join discussion ↓

Summary:The OpenSSH upstream commit 5b63da24 changes the default key type generated by `ssh-keygen` without an explicit `-t` option to ECDSA NIST P-384, represented as `ecdsa-sha2-nistp384`. The default moves from P-256's roughly 128-bit classical security margin to P-384's roughly 192-bit margin, at the cost of larger public keys and signatures and somewhat heavier elliptic-curve operations. The change does not rotate existing host or user keys, and the supplied material contains no release tag, compa


The OpenSSH upstream commit 5b63da24 changes the default algorithm used by ssh-keygen when no key type is explicitly selected to ECDSA NIST P-384, represented by the SSH public-key type ecdsa-sha2-nistp384. This is a default-security-policy change rather than a new signature protocol or cryptographic implementation. Existing keys are not rotated automatically, and the supplied material does not identify a release in which the commit has shipped.

What the change actually affects

When ssh-keygen is run without a -t option, the default generation path moves from ECDSA NIST P-256 to NIST P-384. Commands that explicitly request Ed25519, RSA, or another ECDSA curve are unaffected. Automated workflows that rely on ssh-keygen, including some operating-system initialization and host-key generation scripts, may therefore begin producing a different host-key algorithm.

P-384 corresponds to the secp384r1 curve, while the SSH key type ecdsa-sha2-nistp384 uses SHA-384 for ECDSA signatures. Under the standard NIST security-strength estimates, P-256 provides approximately 128 bits of classical security margin, compared with roughly 192 bits for P-384. The change raises the default resistance to brute-force attacks, but ECDSA remains vulnerable to sufficiently capable quantum algorithms and should not be described as post-quantum protection.

Public-key and signature mechanics

ECDSA P-384 derives a public key and signature through elliptic-curve scalar multiplication. Compared with P-256, its uncompressed public-key point is about 32 bytes larger before SSH binary encoding and Base64 wrapping. Its ECDSA DER signature is also larger. For a typical SSH connection, these bytes remain a small fraction of the handshake and do not materially affect bulk-transfer throughput.

The stronger curve is not free. A P-384 scalar multiplication requires more computation than P-256, and private-key signing is correspondingly slower. SSH connection establishment is also constrained by network round trips, key exchange, and authentication policy. Unless a deployment sustains an unusually high connection rate, the extra elliptic-curve work is more likely to appear in CPU cost and tail latency than in end-to-end throughput. The current source provides no benchmark data, so no claim about a connection-speed increase or regression is justified.

Compatibility and deployment risks

ecdsa-sha2-nistp384 is defined by RFC 5656 and is supported by modern OpenSSH clients. Old desktop distributions, embedded systems, hardware security modules, and custom terminals still require separate testing. If a server begins offering only a P-384 host key while a client accepts only P-256 or RSA, host-key algorithm negotiation can fail outright.

Host-key rotation also affects known_hosts. Clients commonly store records by hostname and key algorithm, so a new P-384 host key does not automatically inherit the trust associated with the previous key. Blindly removing the old record weakens protection against man-in-the-middle attacks, while leaving only a stale record produces an expected mismatch. Operators should verify the new fingerprint through a trusted out-of-band channel rather than relying on an unauthenticated ssh-keyscan result.

The new default does not modify existing RSA, Ed25519, or ECDSA keys and does not automatically rewrite deployed authorized_keys files. Its practical effect is therefore concentrated in newly generated keys after an upgrade, fresh environment initialization, and the next scheduled host-key rotation rather than an immediate change to every production system.

Performance and testing guidance

The current material contains no measurements for key generation, signing throughput, handshake latency, or client compatibility. Before deployment, teams should collect at least the following data:

  • Time and peak memory required to generate a P-384 key with ssh-keygen;
  • P-256 and P-384 signing throughput on the target hardware, plus P50, P95, and P99 latency under concurrent public-key authentication;
  • Initial connection, host-key negotiation, and public-key authentication success rates across old and new clients;
  • The known_hosts mismatch, alerting, and rollback behavior surrounding a host-key rotation.

Benchmarks should separate raw cryptographic operations from complete SSH handshakes. If network latency or authentication policy dominates, the cost difference caused by the larger key will likely be less important than those external bottlenecks.

Developer rollout guidance

  1. Confirm the packaged version: Determine whether the distribution actually includes commit 5b63da24. The presence of an upstream branch change does not mean every stable release carries the new default.
  2. Inventory client support: Use ssh -Q key to inspect supported algorithms, with particular attention to old OpenSSH releases, embedded terminals, automation hosts, and HSM integrations.
  3. Generate explicitly when needed: To adopt P-384 immediately without relying on a changed default, run ssh-keygen -t ecdsa -b 384 -f ~/.ssh/id_ecdsa_p384.
  4. Rotate host keys carefully: Test the transition in a non-production environment. If necessary, retain both old and new HostKey paths in sshd_config to provide a migration window for legacy clients.
  5. Verify fingerprints independently: Confirm the new fingerprint through a console, cloud serial console, or another established trusted channel before updating known_hosts; do not remove old entries blindly.
  6. Follow organizational policy, not merely the default: Organizations already standardized on Ed25519 or hardware-backed keys gain little from bulk rotation solely because the upstream default changed. The practical benefit is concentrated in environments that still rely on automatically generated default keys.

Source: GitHub Projects via Hacker News (2026-12-05)

— END —

Tags: #OpenSSH #ECDSA #NIST P-384 #SSH Key Management

Editorial & Fact-Checking Note: This article is compiled from primary research, official release documentation, and source papers by the ZICQ Newsroom pipeline with automated entity verification and human editorial review. If you notice any technical inaccuracy, please submit a correction via our corrections policy or email our editorial desk directly.

What's your take on this story?
Explore & Submit Works

Community Comments

Loading live comments and annotations…