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?
41 Answer
"Please contact your system administrator." You need to do that. Your local ssh key does not match the remote ssh key. You need to update yours and the admin is the one to do that. By the way: what needs to be done is told in lines 10 through 12 in your message.
If the problem is on YOUR end you can remove line THREE (and ONLY line three) in /home/pranav/.ssh/known_hosts and it will retry the ssh connection by verifying you.
Generally the problem should be on your end but if your key got compromised it is best to alarm the admin and have him revoke ALL ssh keys, create new keys and investigate the system on breaches.
1