【发布时间】:2014-01-17 08:47:49
【问题描述】:
我已经重新安装了我的服务器,我收到了这些消息:
[user@hostname ~]$ ssh root@pong
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
6e:45:f9:a8:af:38:3d:a1:a5:c7:76:1d:02:f8:77:00.
Please contact your system administrator.
Add correct host key in /home/hostname /.ssh/known_hosts to get rid of this message.
Offending RSA key in /var/lib/sss/pubconf/known_hosts:4
RSA host key for pong has changed and you have requested strict checking.
Host key verification failed.
我尝试了各种在 Internet 上找到的解决方案。我的known_hosts 文件(通常在~/.ssh/known_hosts 中)在/var/lib/sss/pubconf/known_hosts 中。我试图编辑它,但它仍然处于一种状态。我已安装 ipa-client 并拥有 Fedora 19。如何解决此警告?
到目前为止,所有回答的答案只有在您没有安装 Freeipa 时才有效。
下面来自 adrin 的 cmets 中 freeipa 的正确答案是 here。
【问题讨论】:
-
刚刚发现如果您有 ip 地址冲突也可能发生此问题 nslookup your ip to debug this issue more
-
这里出现了死锁。这个被标记为重复,所以没有人可以添加答案,它链接的那个被标记为离题,所以也没有人可以在那里添加答案。如果您删除 known_hosts,它也会解决问题。
-
我遇到了同样的问题。为了我和其他人的利益,这是我的问题和答案:superuser.com/questions/1071204/…
-
作为希望首先验证其密钥的人,我发现此答案很有用。 askubuntu.com/a/83499/620623
-
正如 sharrajesh 提到的:检查您的 DNS 条目(对我来说在 FreeIPA 中)并查看您没有多个 A 条目的 IP 无法从网络访问。
标签: ssh verification ipa man-in-the-middle