【发布时间】:2020-07-25 02:20:53
【问题描述】:
当我尝试通过 ssh 连接到 github 时,有时会卡在 debug1: Connecting to github.com port 22. 上,当我尝试将 git push 连接到 github 时也会发生同样的情况。问题是有时我会建立联系,但很少。也许在 30 次尝试中我能成功一次。
我尝试了不同的端口,没有任何改善。我检查了 git config,似乎很好。
我的 .ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
我的 etc/ssh/config
# lots of uncommented lines... then line 48:
Host *
SendEnv LANG LC_*
ssh -vvvT git@github.com的输出
OpenSSH_7.9p1, LibreSSL 2.7.3
debug1: Reading configuration data /Users/alucca/.ssh/config
debug1: /Users/alucca/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 48: Applying options for *
debug1: Connecting to github.com port 22.
感谢您的任何建议。
【问题讨论】:
-
听起来你的 SSH 客户端不好。