ECDSA host key for 192.168.31.14 has changed and you have requested strict checking. Host key verification failed.
Host key verification failed.)
问题描述
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:wIzwePibak4l7QfCBlLu+xTuD0koA4W+j98O1TdqphA.
Please contact your system administrator.
Add correct host key in /home/randomai/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/randomai/.ssh/known_hosts:2
remove with:
ssh-keygen -f “/home/randomai/.ssh/known_hosts” -R “192.168.31.14”
ECDSA host key for 192.168.31.14 has changed and you have requested strict checking.
Host key verification failed.
解决方法
在主机执行下面的命令:
sudo ssh-keygen -f "/home/用户名/.ssh/known_hosts" -R "192.168.31.14"