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

sed -i '/^KexAlgorithms/s/^/#/' /etc/ssh/sshd_config
vim /etc/ssh/sshd_config

1.2 重启服务

systemctl restart sshd

1.3 查看配置文件

sshd -T | grep -w kexalgorithms

1.4亲测有效

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐