git——kex_exchange_identification: Connection closed by remote host


在 windows 系統上從 github 上 clone 代碼時,報了一個錯,研究了一下,原來是自己在造BUG。在此記錄一下原因——>

報錯如下

$ git clone git@github.com:ximury/Web.git
Cloning into 'Web'...
kex_exchange_identification: Connection closed by remote host
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

 

 

原因分析

git clone 時選擇的是SSH鏈接,使用HTTPS鏈接地址進行下載就可以啦!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM