简体   繁体   中英

"git push" hangs indefinitely (for github.com)

Since yesterday's github outage I haven't been able to git push except on rare circumstances if I try it frequently enough.

If I run GIT_SSH_COMMAND="ssh -vvv" git push to see more verbose details I get this:

OpenSSH_8.6p1, LibreSSL 3.3.6
debug1: Reading configuration data /Users/me/.ssh/config
debug1: /Users/me/.ssh/config line 1: Applying options for *
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files
debug1: /etc/ssh/ssh_config line 54: Applying options for *
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts' -> '/Users/me/.ssh/known_hosts'
debug3: expanded UserKnownHostsFile '~/.ssh/known_hosts2' -> '/Users/me/.ssh/known_hosts2'
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to github.com port 22.

I have also tried

killall ssh-agent; eval `ssh-agent`

but that's not doing anything

I'm on MacOS

Check first if the network route is opened/available from your workstation.
(context: Incident on 2022-09-07 15:04 UTC )

C:\Users\vonc\git\gitcpl>curl -v telnet://github.com:22
*   Trying 140.82.121.4:22...
* Connected to github.com (140.82.121.4) port 22 (#0)
SSH-2.0-babeld-4047ed67

How do I check if there's multiple hosts configured?

Check the content of /Users/me/.ssh/config

I have also tried

killall ssh-agent; eval `ssh-agent`

This applies only for encrypted private SSH keys , and would require you to ssh-add it back .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM