
(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 주소를 사용하도록 둘 중 하나를 재구성하십시오.
(그러나 이5월또한 악의적인 일이 진행되고 있음을 나타냅니다. SSH의 Known_hosts 검사가 사용자를 보호하기 위한 것과 정확히 같은 종류입니다.)