首页  编辑  

Github 报错 kex_exchange_identification: Connection closed by remote host

Tags: /计算机文档/软件应用技巧/   Date Created:
github 报错:
$ git fetch --prune --all --verbose
 
Fetching origin
kex_exchange_identification: Connection closed by remote host
Connection closed by 198.18.0.114 port 22
fatal: Could not read from remote repository.
 
Please make sure you have the correct access rights
and the repository exists.
方法一:用https,把repo的url改成http方式。
方法二:坚持使用SSH方式,在 {用户}/.ssh/ 目录下建立config文本文档,输入以下代码,端口指向443即可。
Host github.com
Hostname ssh.github.com
Port 443