今天遇到了一个错误内容:
RSA host key for x.x.x.x has changed and you have requested strict checking.
Host key verification failed.
具体类似下面:
[root@kvm_salt_zabbix gitlab]# ssh-copy-id -i /root/.ssh/id_rsa.pub root@47.52.x.x
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
xxxxxxx.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:1
RSA host key for x.x.x.x has changed and you have requested strict checking.
Host key verification failed.
原因目标服务器重装以后,key发生变化。
ssh-keygen -R 目标服务器IP或网址 执行完命令以后重新添加。
输入上面的host key for x.x.x.x 地方的Ip或者域名。
如果觉得本文对你有帮助,欢迎点赞评论,欢迎关注我,我将努力创作更多更好的文章。
原文链接:https://blog.csdn.net/w605283073/article/details/89322417
本站声明:网站内容来源于网络,如有侵权,请联系我们,我们将及时处理。
本博客所有文章如无特别注明均为原创。
复制或转载请以超链接形式注明转自起风了,原文地址《RSA host key for xxx has changed and you have requested strict checking.》
复制或转载请以超链接形式注明转自起风了,原文地址《RSA host key for xxx has changed and you have requested strict checking.》
还没有人抢沙发呢~