issue
- 鏈接 github 時齿椅,總是出現(xiàn)錯誤提示
ssh_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.
環(huán)境
- windows 7 64bit
- git version: git version 2.8.3.windows.1
結(jié)論
經(jīng)過調(diào)查發(fā)現(xiàn)形真,在C:\Users\xxx\.ssh\config
中的配置出現(xiàn)了問題褒墨,HostName
應(yīng)配置為 ssh.github.com
,不要漏掉 ssh.
以下是完整配置(IdentityFile
需自行指定)
Host github.com
User git
HostName ssh.github.com
Port 443
IdentityFile /C/Users/xxx/.ssh/id_rsa