1 遇到的问题
执行下面命令时:
ssh tianru@192.168.5.106
遇到了这个问题:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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:T0dM9LXM/75Ga07wlbkyJ5TYZN+GdjZiyoA+13GgISE.
Please contact your system administrator.
Add correct host key in /home/tianru/.ssh/known_hosts to get rid of this message.
Offending ECDSA key in /home/tianru/.ssh/known_hosts:2
remove with:
ssh-keygen -f "/home/tianru/.ssh/known_hosts" -R 192.168.5.106
ECDSA host key for 192.168.5.106 has changed and you have requested strict checking.
Host key verification failed.
2 解决办法
执行:
ssh-keygen -R 192.168.5.106
再次执行即可登录;