某天使用 git pull 从 github 拉取代码时报如下错误:
kex_exchange_identification: read: Software caused connection abort banner exchange: Connection to 20.205.243.166 port 22: Software caused connection abort fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
https://docs.github.com/zh/authentication/troubleshooting-ssh/using-ssh-over-the-https-port
配置一下 ~/.ssh/config:
Host github.com
Hostname ssh.github.com
Port 443
User git