使用 git 提交代码到 github.com 中,出现以下错误导致无法提交:
kex_exchange_identification: Connection closed by remote host
Connection closed by 127.0.0.1 port 33210
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
出现以上错误后,修改 vim ~/.ssh/config
配置文件,添加以下内容
Host github.com
Hostname ssh.github.com
Port 443
User git