今天在公司内网登陆阿里云服务器的时候,执行ssh报错,提示 Add correct host key in /root/.ssh/known_hosts to get rid of this message,大致问题是因为登录标识证书变了。
解决方法一: 清除本地缓存证书
执行 ssh-keygen -R IP地址
解决方法二:在.ssh/known_hosts中删除对应ip
执行vi .ssh/known_hosts 找到并删除
版权声明:本文为博主作者:蝶开三月原创文章,版权归属原作者,如果侵权,请联系我们删除!
原文链接:https://blog.csdn.net/panjiapengfly/article/details/129343112