問題
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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:8hgJ8jpcBr1tm6HS72FpXwMrjba8MQqlqYJQLPB/Qf4. Please contact your system administrator. Add correct host key in /Users/dylan/.ssh/known_hosts to get rid of this message. Offending ECDSA key in /Users/dylan/.ssh/known_hosts:26 ECDSA host key for 47.98.233.15 has changed and you have requested strict checking. Host key verification failed.
其中有這么一句提示:
Add correct host key in /Users/dylan/.ssh/known_hosts to get rid of this message
解法
刪掉與IP對應主機密鑰,保存后即可
DylandeMacBook-Pro:~ dylan$ vi /Users/dylan/.ssh/known_hosts