yumoz

阿里云网页版远程链接出错-Unable to negotiate key exchange for server host key algorithms

解决方案

备注:

  • 我在普通用户下运行,所以用了sudo。
  • 系统:Centos 7
  • 阿里云

第一步:登录实例,参考如下,恢复相关文件默认权限。

cd /etc/ssh

image

第二步:删除相关文件

sudo rm -rf ssh_host_*

image

第三步:重启SSH服务,自动生成相关文件

systemctl restart sshd

image

第四步: 成功了
image

备注:
致谢:参考阿里云客服建议。

posted @ 2022-04-24 12:12  yumoz  阅读(1183)  评论(0编辑  收藏  举报