ssh:使用ssh链接服务器的时候报错 Add correct host key in /root/.ssh/known_hosts to get rid of this message
使用ssh链接服务器的时候报错 Add correct host key in /root/.ssh/known_hosts to get rid of this message
文章共121字 · 阅读需要大约1分钟
一键AI生成摘要,助你高效阅读
问答
·
今天在公司内网登陆阿里云服务器的时候,执行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 找到并删除
更多推荐
已为社区贡献3条内容
所有评论(0)