问题描述
(base) ➜ test git:(dev) git pull
kex_exchange_identification: Connection closed by remote host
Connection closed by 192.30.255.113 port 22
致命错误:无法读取远程仓库。
解决方案
参照下边文档
https://docs.github.com/en/authentication/troubleshooting-ssh/using-ssh-over-the-https-port文章来源地址https://www.toymoban.com/news/detail-753032.html
- 进入config文件
(base) ➜ .ssh vi ~/.ssh/config
- 添加下述配置
Host github.com
Hostname ssh.github.com
Port 443
User git
- 结果如下图
- 运行如下代码进行验证
$ ssh -T git@github.com
> Hi USERNAME! You've successfully authenticated, but GitHub does not
> provide shell access.
- 如果都没问题,重新git pull自己代码仓库里的代码,发现可以正常拉取,问题至此解决
文章来源:https://www.toymoban.com/news/detail-753032.html
到了这里,关于github: kex_exchange_identification: Connection closed by remote host的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!