1. 程式人生 > 其它 >git——kex_exchange_identification: Connection closed by remote host

git——kex_exchange_identification: Connection closed by remote host

技術標籤:git

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

報錯如下

$ git clone [email protected]: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連結地址進行下載就可以啦!