解决方案
备注:
- 我在普通用户下运行,所以用了sudo。
- 系统:Centos 7
- 阿里云
第一步:登录实例,参考如下,恢复相关文件默认权限。
cd /etc/ssh
第二步:删除相关文件
sudo rm -rf ssh_host_*
第三步:重启SSH服务,自动生成相关文件
systemctl restart sshd
第四步: 成功了
备注:
致谢:参考阿里云客服建议。
标签:exchange,sudo,negotiate,host,阿里,ssh,key,备注
来源: https://www.cnblogs.com/yumoz/p/yumoz.html