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
- Check the requirements: OpenSSH 10.0+ uses mlkem768x25519-sha256 by default (offered since 9.9; sntrup761 since 9.0).
- Apply the configuration below.
- Reload the service and check it again on checkmypqc.com.
Recommended now: post-quantum first, classical kept
# 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
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.
Findings
- HighNo post-quantum key exchange
CMP-SSH-KX-CLASSICAL - HighOnly a pre-standard post-quantum method
CMP-SSH-KX-DRAFT-ONLY - LowPost-quantum through sntrup761 only
CMP-SSH-KX-NO-MLKEM