【发布时间】:2020-07-11 16:51:19
【问题描述】:
我们有一个包含多个工作节点的 Kubernetes 集群。节点之间的唯一区别是 IP 地址和主机名。我以前都是ssh进去的,一点问题都没有。
我了解有很多与此警告相关的类似问题,但我认为其中任何一个都与我的不同。详细地说,最近,当 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:95IISBgdGFLH2SEeU+E6YO+S9qnfEXfJqblNqfY/SFE.
Please contact your system administrator.
Add correct host key in /home/xxx/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/xxx/.ssh/known_hosts:55
remove with:
ssh-keygen -f "/home/xxx/.ssh/known_hosts" -R "10.210.10.12"
RSA host key for 10.210.10.12 has changed and you have requested strict checking.
Host key verification failed.
这些是我到目前为止所做的:
用
arp -a命令查看机器的MAC地址,是目标机器。删除 known_hosts 的第 55 行。但过了一段时间,它又发生了。
重新插网线,可以ssh进去一会,过一段时间又出现这种情况。
有什么想法吗?
提前致谢。
【问题讨论】:
标签: ssh