OpenSSH (macOS 与 Linux)

修正 macOS 默认优先级,使 SSH 协商 mlkem768x25519-sha256。

预计耗时: 2 分钟 NIST FIPS 203 (ML-KEM)

macOS 的 /etc/ssh/crypto.conf 将传统 ECDH 排在后量子 KEX 之前。请在 ~/.ssh/config 顶部及服务端 sshd_config 中显式指定 KexAlgorithms。

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"
验证命令: ssh -G example.com | grep '^kexalgorithms '
立即在线验证部署结果

重载 TLS 配置后,立刻执行实时 NIST FIPS 203 ML-KEM 握手检测。

检测工具 →