macOSの /etc/ssh/crypto.conf は古典ECDHを優先します。~/.ssh/config の最上部とサーバーの sshd_config で KexAlgorithms を明示指定します。
# 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ハンドシェイクを再検証できます。