Skip to content
Vol. 1 · Ed. 2026
CyberGlossary
Entry № 1212

SSH Key Types

Reviewed byCybersecurity entrepreneur & security researcher

What is SSH Key Types?

SSH Key TypesThe asymmetric key algorithms accepted by OpenSSH for user and host authentication: RSA, ECDSA (NIST curves), and the modern default Ed25519.


OpenSSH supports several public-key algorithms for user and host authentication. RSA keys (ssh-rsa) remain widespread; modern deployments should generate them at >=3072 bits and rely on the rsa-sha2-256 / rsa-sha2-512 signature algorithms (RFC 8332) rather than the deprecated SHA-1 signature, which OpenSSH 8.8 disabled by default in 2021.

ECDSA on the NIST P-256/P-384/P-521 curves (RFC 5656) is supported but carries a sharp operational edge: each signature consumes a secret nonce, and any reuse or bias leaks the private key. A fixed nonce famously broke Sony's PlayStation 3 code-signing key in 2010, and the 2019 Minerva attacks recovered ECDSA keys from several libraries and smartcards through signing-time side channels. Deterministic nonces (RFC 6979) remove most of this risk.

Ed25519 (RFC 8709), added in OpenSSH 6.5 (2014), is the recommended default: fixed 256-bit keys, deterministic EdDSA signing that needs no per-signature randomness, fast verification, and a rigid curve with no NIST-parameter controversy. The hardware-backed sk variants — ecdsa-sk and ed25519-sk — bind the private key to a FIDO2 authenticator, so authentication requires the physical token and resists phishing and key theft.

flowchart TD
  A[Choose SSH key type] --> B{Hardware token available?}
  B -- Yes --> C[ed25519-sk / ecdsa-sk: FIDO2-backed]
  B -- No --> D{Legacy system compatibility needed?}
  D -- No --> E[Ed25519: modern default]
  D -- Yes --> F[RSA >=3072 bits, rsa-sha2-512]
  E --> G[Deterministic signing, no nonce risk]
  C --> G
  F --> H[Avoid SHA-1; rotate periodically]

● Examples

  1. 01

    Generating a modern user key with ssh-keygen -t ed25519 -C user@host.

  2. 02

    Provisioning a FIDO-backed key with ssh-keygen -t ed25519-sk -O resident -O verify-required.

● Frequently asked questions

What is SSH Key Types?

The asymmetric key algorithms accepted by OpenSSH for user and host authentication: RSA, ECDSA (NIST curves), and the modern default Ed25519. It belongs to the Network Security category of cybersecurity.

What does SSH Key Types mean?

The asymmetric key algorithms accepted by OpenSSH for user and host authentication: RSA, ECDSA (NIST curves), and the modern default Ed25519.

How do you defend against SSH Key Types?

Defences for SSH Key Types typically combine technical controls and operational practices, as detailed in the full definition above.

What are other names for SSH Key Types?

Common alternative names include: RSA, ECDSA, Ed25519.

● Related terms