Host key verification failed. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
另外一個訊息是出現在終端機
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ 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 ******* Please contact your system administrator. Add correct host key in /Users/***/.ssh/known_hosts to get rid of this message. Offending RSA key in /Users/***/.ssh/known_hosts:1 Host key for github.com has changed and you have requested strict checking. Host key verification failed. fatal: Could not read from remote repository.
Please make sure you have the correct access rights and the repository exists.
解決步驟
步驟一:刪除已知的主機密鑰檔案
在您的本地端電腦上,開啟您的終端機或命令提示字元,並輸入以下指令,以刪除已知的主機密鑰檔案:
1
$ ssh-keygen -R <hostname>
<hstname> 是欲連線的目標主機名稱或 IP 位址。 像我這邊就是需要填上 github.com