
(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.
Já tentei eliminar as chaves ssh e regenerá-las, sem alterações.
Responder1
Você temdois dispositivostentando usar o mesmo endereço IP na mesma sub-rede. (Como mostra o arping, seus endereços MAC são 00:E0:32:11:01:3E
e D4:3D:7E:65:6D:B1
.)
Isso significa que às vezes você acaba se conectando a um dispositivo e às vezes a outro (dependendo de qual responder primeiro às solicitações ARP) e, naturalmente, eles têm chaves de host SSH diferentes e causam o alerta de incompatibilidade.
Se ambos forem dispositivos legítimos, reconfigure um deles para usar um endereço IP diferente.
(No entanto, issopoderiatambém indica que algo malicioso está acontecendo - exatamente o tipo de coisa contra a qual a verificação deknown_hosts do SSH pretende protegê-lo.)