配置与验证
配置与验证
# /etc/ssh/sshd_config
KexAlgorithms curve25519-sha256,ecdh-sha2-nistp256
Ciphers aes256-gcm@openssh.com,chacha20-poly1305@openssh.com,aes128-gcm@openssh.com
MACs hmac-sha2-512,hmac-sha2-256
sshd -T | grep -E 'kexalgorithms|ciphers|macs'
sshd -t && systemctl reload sshd老客户端(旧版终端工具、巡检软件)可能不支持新算法:先看 sshd -T 现状,灰度切换并保留回退配置。