@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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.
當(dāng)主機域名和IP地址對應(yīng)的兩個HostKey值不一致時仅孩,會給出類似如下警告:
解決方案:
刪除掉舊的HostKey值記錄更米,下次重新保存新的就行。
方法1: vim ~/.ssh/known_hosts
清除舊的公鑰信息
方法2: ssh-keygen -R 192.168.0.100
將對應(yīng)ip地址的公鑰信息刪掉就行