遇到了WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!

xiaoxiao2021-02-28  59

登录虚拟机时遇到了这个警告:

zz@server5:~/temp/testlist$ ssh zz@10.0.11.38 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 a host key has just been changed. The fingerprint for the RSA key sent by the remote host is d0:16:48:31:d0:ec:10:0a:64:21:2d:d9:08:6f:5f:fa. Please contact your system administrator. Add correct host key in /home/zz/.ssh/known_hosts to get rid of this message. Offending RSA key in /home/zz/.ssh/known_hosts:1 remove with: ssh-keygen -f "/home/zz/.ssh/known_hosts" -R 10.0.11.38 RSA host key for 10.0.11.38 has changed and you have requested strict checking. Host key verification failed. zz@server5:

我本地的ip是10.0.11.125,目标及是10.0.11.38 于是去搜了一下,说是打开

~/.ssh/known_hosts

然后从里面找到目标地址删掉,具体到我也就是从里面找到10.0.11.38的那一行信息删掉,但是我打开一看傻眼了,里面都是加密过的内容,完全没有明文的10.0.11.38字符串,这怎么删?

再接着搜,找到了使用下面命令:

ssh-keygen -R 10.0.11.38

于是照着操作了一下,然后在ssh就可以了。 于是就赶快来写这篇日志,就在复制开始的那一段警告信息时,我仔细看了一下,突然发现,它的警告里已经有解决方法了。草草草草草。

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 a host key has just been changed. The fingerprint for the RSA key sent by the remote host is d0:16:48:31:d0:ec:10:0a:64:21:2d:d9:08:6f:5f:fa. Please contact your system administrator. Add correct host key in /home/zz/.ssh/known_hosts to get rid of this message. Offending RSA key in /home/zz/.ssh/known_hosts:1 remove with: **ssh-keygen -f "/home/zz/.ssh/known_hosts" -R 10.0.11.38** RSA host key for 10.0.11.38 has changed and you have requested strict checking. Host key verification failed
转载请注明原文地址: https://www.6miu.com/read-74922.html

最新回复(0)