原因:
对比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
##注意+号不能省略,+是追加算法
Logo

为开发者提供学习成长、分享交流、生态实践、资源工具等服务,帮助开发者快速成长。

更多推荐