Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/security/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Security 本地虚拟机已更改ssh指纹_Security_Ssh_Debian_Man In The Middle - Fatal编程技术网

Security 本地虚拟机已更改ssh指纹

Security 本地虚拟机已更改ssh指纹,security,ssh,debian,man-in-the-middle,Security,Ssh,Debian,Man In The Middle,就历史而言,我有一个带有OS debian的本地VM(Virtualbox),在这个VM中我开发了一个Web应用程序。我使用ssh协议登录 今天,我面临一个奇怪的问题。我尝试使用ssh连接到本地VM,并收到以下消息: @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED! @ @@@@@@@@@@@@@@@@@@@@@

就历史而言,我有一个带有OS debian的本地VM(Virtualbox),在这个VM中我开发了一个Web应用程序。我使用ssh协议登录

今天,我面临一个奇怪的问题。我尝试使用ssh连接到本地VM,并收到以下消息:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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
SHA256:_______________________________________.
Please contact your system administrator.
Add correct host key in /Users/_____/.ssh/known_hosts to get rid of this message.
Offending RSA key in /Users/______/.ssh/known_hosts:5
RSA host key for 192.168.1.6 has changed and you have requested strict checking.
Host key verification failed.

我知道我的本地虚拟机的指纹已经更改,我想知道是否有可能自行更改公共指纹。 我试着了解中间是否有人。

谢谢您的时间:)

也许这可以帮助您

检查是否存在其他具有相同IP(可能是静态IP)的机器,您可以使用“arping”进行此操作


(我作为答案发布,因为我无法发表评论)

我不确定指纹是如何计算的,但如果您的虚拟机被分配了一个新的IP或MAC地址,则可能是这样。由于您可以非常确信VM没有被篡改,因此可以从.ssh/known_hosts文件中删除有问题的指纹。我认为您是对的。我的虚拟机从DHCP获取ip,因此它没有固定的ip,或者当前的ip过去从另一个设备捕获。我没有其他理由给出。不确定问题是什么。我知道我的本地VM的指纹已经更改,我想知道是否可以自行更改公共指纹。我试着了解中间是否有人。