1 查看支持的算法
man sshd_config |grep -A 40 -w KexAlgorithms
1.1 修复方法
1.修改sshd_config配置文件,注释不安全的算法
2.添加算法
echo "KexAlgorithms curve25519-sha256,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521" >> /etc/ssh/sshd_config
vim /etc/ssh/sshd_config
1.2 重启服务
systemctl restart sshd
1.3 查看配置文件
sshd -T | grep -w kexalgorithms
文章评论