2025-09-09,我发现我的电脑 git 无法推送,
1ssh -vvv -T git@github.com
卡死
神奇的是,并不是因为https无法推送,而是ssh无法推送,这是我第一次遇到这种情况.
1╭─rainboy@y9000x ~
2╰─$ nslookup github.com 119.119.119.119
3Server: 119.119.119.119
4Address: 119.119.119.119#53
5
6Non-authoritative answer:
7Name: github.com
8Address: 20.205.243.166
1ssh -T git@20.205.243.166
卡死
使用在线 dns check : https://dnschecker.org/#A/github.com

得到ip : 140.82.114.3
1ssh -T git@140.82.114.3
2
3
4The authenticity of host '140.82.114.3 (140.82.114.3)' can't be established.
5ED25519 key fingerprint is SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU.
6This host key is known by the following other names/addresses:
7 ~/.ssh/known_hosts:59: github.com
8 ~/.ssh/known_hosts:98: [ssh.github.com]:443
9 ~/.ssh/known_hosts:99: 140.82.114.4
10Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
11Warning: Permanently added '140.82.114.3' (ED25519) to the list of known hosts.
12Hi Rainboylvx! You've successfully authenticated, but GitHub does not provide shell access.
成功了 !?
1ssh -T -p 443 git@ssh.github.com
也能成功! 真是神奇
不得已,我修改了~/.ssh/config 文件
1Host github.com
2 Hostname ssh.github.com
3 Port 443
4 User git
暂时先使用443端口来访问 github