ssh error。Host key verification failed.

$ ssh ubuntu@192.168.0.110

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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 ECDSA key sent by the remote host is
SHA256:BH4/rb4RvESlqoe4yBKIcVHBaFMM6iZ/X14X2qhtbmM.
Please contact your system administrator.
Add correct host key in /home/ubuntu/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/ubuntu/.ssh/known_hosts:1
remove with:
ssh-keygen -f "/home/ubuntu/.ssh/known_hosts" -R 192.168.0.110
ECDSA host key for 192.168.0.110 has changed and you have requested strict checking.
Host key verification failed.
已邀请:

ddwy

赞同来自:

rm ~/.ssh/known_hosts

 

lalala

赞同来自:

ssh-keygen -f "/home/ubuntu/.ssh/known_hosts" -R 192.168.0.110
删除对应的IP的ssh公钥即可

要回复问题请先登录注册