After typing the command
ssh -p 8101 karaf@docker-ip onos1
I am getting an error
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
SHA256:rV+69MOdHKanIvP41a9Xspug6am7/BV7CHVjhxxxxx.
Please contact your system administrator.
Add correct host key in `/home/pranav/.ssh/known_hosts` to get rid of this message.
Offending RSA key in `/home/pranav/.ssh/known_hosts:3`
remove with:
ssh-keygen -f "/home/pranav/.ssh/known_hosts" -R [172.17.0.2]:8101
RSA host key for [172.17.0.2]:8101 has changed and you have requested strict checking.
Host key verification failed.
try deleting the file C:\Users\YourUsername.ssh\known_hosts file and try to connect again. It will ask for yes/no. give yes if you trust the source and it should work.
Some time server ssh key is changes and the one registered in your local do not match with the new server ssh key.
Complete Theory at link https://stackabuse.com/how-to-fix-warning-remote-host-identification-has-changed-on-mac-and-linux/