SSH problem can't connect my CSR using Vyos

Hello ,

I’m trying to reach CSR virtual router from cisco on my ESXi using Vyos using SSH and then I got this message

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 RSA key sent by the remote host is
43:19:09:d9:bf:b6:fe:4e:92:3d:d2:37:25:af:44:9c.
Please contact your system administrator.
Add correct host key in /home/vyos/.ssh/known_hosts to get rid of this message.
Offending RSA key in /home/vyos/.ssh/known_hosts:1
remove with: ssh-keygen -f “/home/vyos/.ssh/known_hosts” -R 30.20.20.1
RSA host key for 30.20.20.1 has changed and you have requested strict checking.
Host key verification failed.

I don’t know how to solve it please I need your help

Best Regards

Try and execute the command it’s telling you

ssh-keygen -f “/home/vyos/.ssh/known_hosts” -R 30.20.20.1

Where exactly can I execute this command ?

From the same place where you executed the first command.

The problem is that the ssh-hosts key on the cisco device has changed key fingerprint according to your “known_hosts” file. Your known hosts ssh file contains a list of IP’s and keys to previously connected devices. If a ssh fingerprint is not correct, you get that warning. Either you have connected to another device with the same IP before, or the device has changed key.