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