問題背景:
前幾日,把雲服務器系統由centos改成Ubuntu之后,重新搭建的git服務器環境。
問題描述:
從本機不能clone遠程git倉庫。
報錯如下:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 RSA key sent by the remote host is SHA256:puhqqLAYH9hxo9rEtbhdyoeM98JQsEPY7SKMeNmzt30. Please contact your system administrator. Add correct host key in /c/Users/Daemon/.ssh/known_hosts to get rid of this message. Offending RSA key in /c/Users/Daemon/.ssh/known_hosts:1 RSA host key for 118.89.230.188 has changed and you have requested strict checking. Host key verification failed.
問題解決:
把/c/Users/Daemon/.ssh/known_hosts 文件中118.89.230.188地址的公鑰刪除,更換系統后,需要重新匹配遠程服務器信息。