2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > ssh:使用ssh链接服务器的时候报错 Add correct host key in /root/.ssh/known_hosts to get rid of this message

ssh:使用ssh链接服务器的时候报错 Add correct host key in /root/.ssh/known_hosts to get rid of this message

时间:2021-01-08 15:01:13

相关推荐

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,大致问题是因为登录标识证书变了。

解决方法一:清除本地缓存证书

执行 ssh-keygen -R IP地址

解决方法二:在.ssh/known_hosts中删除对应ip

执行vi .ssh/known_hosts 找到并删除

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。