[Solved] ssh connection failed

Problem:

C:\Users\shomin>ssh namikidrone2@192.168.8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    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:MvA6+SzNldrn/8WOyMlPHDjqOWhtlIMTAj2HX0kno9A.
Please contact your system administrator.
Add correct host key in C:\\Users\\shomin/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in C:\\Users\\shomin/.ssh/known_hosts:1
ECDSA host key for 192.168.8.1 has changed and you have requested strict checking.
Host key verification failed.

Solution:

Edit file: known_hosts located at C:\\Users\\shomin/.ssh/

Add:
Host *
   StrictHostKeyChecking no
   UserKnownHostsFile=/dev/null

Reference:
[1] https://www.linux.com/blog/4-reasons-why-ssh-connection-fails%20
[2] https://www.shellhacks.com/disable-ssh-host-key-checking/

留言

這個網誌中的熱門文章

Tuing PID parameters in QGroundcontrol (2)

Useful PX4 Parameters

Burn linux image to eMMC storage on Banana Pi M3