网络问题拾遗
github 无法push
kex_exchange_identification: Connection closed by remote host
Connection closed by 20.205.243.166 port 22
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
解决方法: 要在 SSH 配置文件中设置此项,请在 ~/.ssh/config 中编辑该文件,并添加以下部分:
Host github.com
Hostname ssh.github.com
Port 443
User git
通过再次连接到 GitHub.com 来测试这是否有效:
$ ssh -T [email protected]
参考
文档信息
- 版权声明:自由转载-非商用-非衍生-保持署名(创意共享3.0许可证)
- 发表日期: 2023-11-22T16:05:40+08:00