After typing the command
ssh -p 8101 karaf@docker-ip onos1
I am getting the 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/BV7CHVjhxKYFyM.
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.
can you help me with this?
~/.ssh/known_hosts
file. What @Rinzwind suggested in their answer is what should be done. – JW0914 Aug 12 '18 at 21:20