【问题标题】:Local VM changed ssh fingerprint本地虚拟机更改了 ssh 指纹
【发布时间】:2016-04-09 05:45:53
【问题描述】:

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

今天,我面临一个奇怪的故障排除。我尝试通过 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
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 或 MAC 地址,则可能是这样。由于您可以相当确信 VM 没有被篡改,您可以从 .ssh/known_hosts 文件中删除有问题的指纹
  • 我认为你是对的。我的虚拟机从 DHCP 获取 ip,因此它没有固定的 ip,或者当前的 ip 过去是从另一台设备捕获的。我没有其他理由给予。
  • 不确定是什么问题。
  • 我知道我的本地虚拟机的指纹已被更改,我想知道是否可以自行更改公共指纹。我试图了解中间是否有人。

标签: security ssh debian man-in-the-middle


【解决方案1】:

也许这可以帮助你https://superuser.com/questions/421997/what-is-a-ssh-key-fingerprint-and-how-is-it-generated

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-06-15
    • 2019-10-07
    • 1970-01-01
    • 2018-03-28
    • 2018-06-26
    • 2014-02-28
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多