Its showing man in middle attacks

when iam deployed openwrt firmware in mikrotik router ,and tried to open it in command prompt its showing like this.

new key, same IP, it's normal and expected.

solution is in your screenshot, or delete line 2, instead of correcting it.

5 Likes

I bet you had accessed a different machine under the same IIP address before, or even the same physical machine just with a different key...
Say when you switch from mikotikOS to OpenWrt the ssh keys are not conserved, and OpenWrt will generate new keys, if you then connect from your computer on the same IP address thats in the known_hosts file that ssh will notice that the key offered by the remote end has changed... and that is the core f the issue that you need to manually resolve (likely by simply deleting line 2 in the known_hosts file AFTER you confirmed that there is no evil man in the middle...)

5 Likes

Delete the old key, you re-flashed the system firmware. C:/Users/91964/.ssh/known hosts on your Windows.

3 Likes

If you reset the router to defaults or upgrade without saving settings, you will get this. The router generated a new key but your ssh client is still expecting the old one.