美文网首页Linux学习|Gentoo/Arch/FreeBSD我用 Linux
(已解决)T IS POSSIBLE THAT SOMEONE

(已解决)T IS POSSIBLE THAT SOMEONE

作者: 午字横 | 来源:发表于2023-04-03 19:04 被阅读0次

报错:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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 ED43439 key sent by the remote host is
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.
Please contact your system administrator.
Add correct host key in /home/user/.ssh/known_hosts to get rid of this message.
Offending ED43439 key in /home/user/.ssh/known_hosts:10
  remove with:
  ssh-keygen -f "/home/fly/.ssh/known_hosts" -R "www.xxxxx.fun"
Host key for www.xxxxx.fun has changed and you have requested strict checking.
Host key verification failed.

同一个ip地址,已经连过第一次了,那次保存了那个ip地址的“指纹”。现在仍然对这个ip地址进行连接,发现其“指纹”和保存的不一样。出于安全考虑,报错(报错中还提示可能是中间人攻击,哈哈)。

为什么会不一样,这个原因有很多,例如服务器重装系统这个应该会导致这个现象,或者其他原因我也不得而知。

删除旧的指纹。

打开用户目录下面的.ssh/known_hosts文件,然后删除连过这个ip地址的记录,那么下次连接的时候会认为是第一次连接,所以会重新保存指纹。


2023-03-29

相关文章

网友评论

    本文标题:(已解决)T IS POSSIBLE THAT SOMEONE

    本文链接:https://www.haomeiwen.com/subject/vwdxddtx.html