checkmypqc.com

Home › Fix guides › Enable post-quantum SSH (mlkem768x25519-sha256) on OpenSSH

Enable post-quantum SSH (mlkem768x25519-sha256) on OpenSSH

How to offer the hybrid post-quantum key exchange mlkem768x25519-sha256 on OpenSSH, from the vendor's documentation, checked on December 4, 2026.

Steps

  1. Check the requirements: OpenSSH 10.0+ uses mlkem768x25519-sha256 by default (offered since 9.9; sntrup761 since 9.0).
  2. Apply the configuration below.
  3. Reload the service and check it again on checkmypqc.com.

Recommended now: post-quantum first, classical kept

/etc/ssh/sshd_config

# OpenSSH 10.0+: the default list already starts with mlkem768x25519-sha256.
# Remove any KexAlgorithms line that drops it, or put post-quantum first:
KexAlgorithms ^mlkem768x25519-sha256,sntrup761x25519-sha512

# then check and reload:
#   sshd -T | grep -i kexalgorithms
#   systemctl reload ssh

OpenSSH 10.1+ clients warn at every connection that is not post-quantum. Since 10.6, sshd can also log clients that connect without it (WarnWeakCrypto in sshd_config).

Later: require post-quantum

This refuses every client without ML-KEM, such as OpenSSH before 9.9 and many libraries. Check who connects before you switch.

/etc/ssh/sshd_config

KexAlgorithms mlkem768x25519-sha256,sntrup761x25519-sha512,sntrup761x25519-sha512@openssh.com

Clients before OpenSSH 9.0 are refused; 9.0 to 9.8 connect through sntrup761x25519-sha512@openssh.com only.

Vendor documentation: https://www.openssh.org/pq.html · checked December 4, 2026

Findings

After any change, check the service again. A change that never reaches the server (a load balancer or CDN in front, a configuration file that is not loaded) is the most common reason a fix does not show.

Updated December 4, 2026 · Open the interactive version

Related

Check your site

Free, no account: see in seconds whether browsers get post-quantum key exchange with your website or SSH server.

Check a service

Ask your AI assistant: checkmypqc.com runs a public MCP server at https://checkmypqc.com/mcp.