OpenSSH (macOS & Linux)

Fixes macOS default ECDH priority so SSH negotiates mlkem768x25519-sha256.

Effort: 2 min NIST FIPS 203 (ML-KEM)

macOS ships /etc/ssh/crypto.conf putting classical ECDH ahead of post-quantum KEX. Override KexAlgorithms at the top of ~/.ssh/config and on Linux sshd.

sshconfig
# Add to the VERY TOP of ~/.ssh/config (OpenSSH 9.9+ / 10+):
# '^' prepends PQ hybrid KEX ahead of macOS defaults while keeping fallbacks.
Host *
    KexAlgorithms ^mlkem768x25519-sha256,[email protected]

# On Linux servers (/etc/ssh/sshd_config.d/99-pqc.conf):
# KexAlgorithms mlkem768x25519-sha256,[email protected],curve25519-sha256

# Verify negotiated KEX:
ssh -v yourserver true 2>&1 | grep "kex: algorithm"
Verify: ssh -G example.com | grep '^kexalgorithms '
Verify your deployment live

Run a fresh NIST FIPS 203 ML-KEM handshake check right after reloading your TLS configuration.

Scanner →