xshell4连接ubuntu20.04失败,提示“找不到匹配的key exchange算法“
原因:对比ubuntu18.04,ubuntu20.04的key exchange算法由diffie-hellman-group14-sha1升级到了diffie-hellman-group14-sha256xshell4版本估计不支持diffie-hellman-group14-sha256导致解决方法:增加ubuntu20.04 key excange算法diffie-hellman-grou
·
原因:
对比ubuntu18.04,ubuntu20.04的key exchange算法
由diffie-hellman-group14-sha1
升级到了diffie-hellman-group14-sha256
xshell4版本估计不支持diffie-hellman-group14-sha256
导致
解决方法:
增加ubuntu20.04 key excange算法diffie-hellman-group14-sha1
,兼容xshell4
echo "KexAlgorithms +diffie-hellman-group14-sha1" >>/etc/ssh/sshd_config
systemctl restart sshd
##注意+号不能省略,+是追加算法
更多推荐
已为社区贡献1条内容
所有评论(0)