@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:3Z2O2C4Xlw5GzLzzdg7iyvBza+yIpWWCsk3/9lp4kEQ. Please contact your system administrator. Add correct host key in /Users/aa/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/aa/.ssh/known_hosts:5 ECDSA host key for 108.61.191.51 has changed and you have requested strict checking. Host key verification failed.
当主机域名和IP地址对应的两个HostKey值不一致时,会给出类似如下警告:
解决方案:
删除掉旧的HostKey值记录,下次重新保存新的就行。
方法1: vim ~/.ssh/known_hosts
清除旧的公钥信息
方法2: ssh-keygen -R 192.168.0.100
将对应ip地址的公钥信息删掉就行