
(base) jecc@sajanraj:~$ ssh odin
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: POSSIBLE DNS SPOOFING DETECTED! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
The ECDSA host key for odin has changed,
and the key for the corresponding IP address 192.168.5.250
is unknown. This could either mean that
DNS SPOOFING is happening or the IP address for the host
and its host key have changed at the same time.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
SHA256:mPyyUSVnEvMD4WxMzZWhufbmoJUEY7+DfziKnOpsbsM.
Please contact your system administrator.
Add correct host key in /home/jecc/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/jecc/.ssh/known_hosts:7
remove with:
ssh-keygen -f "/home/jecc/.ssh/known_hosts" -R "odin"
ECDSA host key for odin has changed and you have requested strict checking.
Host key verification failed.
已經嘗試消除 ssh 密鑰並重新生成它,沒有任何變化。
答案1
你有兩個設備嘗試在同一子網路上使用相同的 IP 位址。 (如 arping 顯示,它們的 MAC 位址是00:E0:32:11:01:3E
和D4:3D:7E:65:6D:B1
。)
這意味著有時您最終會連接到一個設備,有時會連接到另一個設備(取決於哪個設備首先應答 ARP 請求),並且自然地它們具有不同的 SSH 主機金鑰並導致不匹配警報。
如果它們都是合法設備,請將其中一個重新配置為使用不同的 IP 位址。
(然而,這可能也表明正在發生一些惡意行為 - 正是 SSH 的known_hosts 檢查旨在保護您免受攻擊的那種東西。