I am using git to host a LaTeX paper I'm writing on both my desktop and laptop. However, it has recently stopped working on the latter. One morning, I was able to clone and push over SSH just fine, but that same evening, without even touching git in the interim, it stopped working. I writegit push and it just hangs indefinitely. It still works just fine on my desktop, but I haven't been able to use git to push changes on my laptop in days.
What hasn't worked:
1. Changing Wi-Fi.
2. Usinggit push origin main instead (main branch is indeed called "main").
3. Trying to push with my firewall down.
4. Deleting the public key attached to my laptop and then adding it back.
5. Restarting my ssh agent using
killall ssh-agent; eval `ssh-agent`6. Attempting to enter my github site username and password when pushing over https.
7. Running
git config --global core.askpass "git-gui--askpass"This is the output of runningssh -vT[email protected]:
suednym@nashton:~$ ssh -vT[email protected]debug1: OpenSSH_10.0p2 Debian-8, OpenSSL 3.5.3 16 Sep 2025debug1: Reading configuration data /home/suednym/.ssh/configdebug1: Reading configuration data /etc/ssh/ssh_configdebug1: Reading configuration data /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.confdebug1: /etc/ssh/ssh_config line 21: Applying options for *debug1: Connecting to github.com [140.82.112.3] port 22.debug1: Connection established.debug1: identity file /home/suednym/.ssh/id_rsa type -1debug1: identity file /home/suednym/.ssh/id_rsa-cert type -1debug1: identity file /home/suednym/.ssh/id_ecdsa type -1debug1: identity file /home/suednym/.ssh/id_ecdsa-cert type -1debug1: identity file /home/suednym/.ssh/id_ecdsa_sk type -1debug1: identity file /home/suednym/.ssh/id_ecdsa_sk-cert type -1debug1: identity file /home/suednym/.ssh/id_ed25519 type 3debug1: identity file /home/suednym/.ssh/id_ed25519-cert type -1debug1: identity file /home/suednym/.ssh/id_ed25519_sk type -1debug1: identity file /home/suednym/.ssh/id_ed25519_sk-cert type -1debug1: identity file /home/suednym/.ssh/id_xmss type -1debug1: identity file /home/suednym/.ssh/id_xmss-cert type -1debug1: Local version string SSH-2.0-OpenSSH_10.0p2 Debian-8debug1: Remote protocol version 2.0, remote software version 550beffdebug1: compat_banner: no match: 550beffdebug1: Authenticating to github.com:22 as 'git'debug1: load_hostkeys: fopen /home/suednym/.ssh/known_hosts2: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directorydebug1: SSH2_MSG_KEXINIT sentdebug1: SSH2_MSG_KEXINIT receiveddebug1: kex: algorithm: sntrup761x25519-sha512debug1: kex: host key algorithm: ssh-ed25519debug1: kex: server->client cipher:[email protected] MAC: <implicit> compression: nonedebug1: kex: client->server cipher:[email protected] MAC: <implicit> compression: nonedebug1: expecting SSH2_MSG_KEX_ECDH_REPLYdebug1: SSH2_MSG_KEX_ECDH_REPLY receiveddebug1: Server host key: ssh-ed25519 SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqUdebug1: load_hostkeys: fopen /home/suednym/.ssh/known_hosts2: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directorydebug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directorydebug1: Host 'github.com' is known and matches the ED25519 host key.debug1: Found key in /home/suednym/.ssh/known_hosts:4debug1: ssh_packet_send2_wrapped: resetting send seqnr 3debug1: rekey out after 134217728 blocksdebug1: SSH2_MSG_NEWKEYS sentdebug1: expecting SSH2_MSG_NEWKEYSdebug1: ssh_packet_read_poll2: resetting read seqnr 3debug1: SSH2_MSG_NEWKEYS receiveddebug1: rekey in after 134217728 blocksdebug1: SSH2_MSG_EXT_INFO receiveddebug1: kex_ext_info_client_parse: server-sig-algs=<[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],ssh-ed25519,ecdsa-sha2-nistp521,ecdsa-sha2-nistp384,ecdsa-sha2-nistp256,rsa-sha2-512,rsa-sha2-256,ssh-rsa>debug1: kex_ext_info_check_ver:[email protected]=<0>debug1: SSH2_MSG_SERVICE_ACCEPT receiveddebug1: Authentications that can continue: publickeydebug1: Next authentication method: publickeydebug1: get_agent_identities: bound agent to hostkeydebug1: get_agent_identities: agent returned 1 keysdebug1: Will attempt key: /home/suednym/.ssh/id_ed25519 ED25519 SHA256:ADkBGmza5yaErxSSoUHdfHycyU3PJOidGiki6DeTSY0 agentdebug1: Will attempt key: /home/suednym/.ssh/id_rsa debug1: Will attempt key: /home/suednym/.ssh/id_ecdsa debug1: Will attempt key: /home/suednym/.ssh/id_ecdsa_sk debug1: Will attempt key: /home/suednym/.ssh/id_ed25519_sk debug1: Will attempt key: /home/suednym/.ssh/id_xmss debug1: Offering public key: /home/suednym/.ssh/id_ed25519 ED25519 SHA256:ADkBGmza5yaErxSSoUHdfHycyU3PJOidGiki6DeTSY0 agentdebug1: Server accepts key: /home/suednym/.ssh/id_ed25519 ED25519 SHA256:ADkBGmza5yaErxSSoUHdfHycyU3PJOidGiki6DeTSY0 agentWhat am I missing? What should I try?
Operating system is Debian GNU/Linux forky/sid, and git is version 2.51.0.
- 2To debug
git pushtrygit push -v(--verbose).phd– phd2025-09-29 11:46:59 +00:00CommentedSep 29 at 11:46 - 1@phd Ah, okay, I believe I understand about
core.askPass. Also converted images of text to text---couldn't post it as text originally without being marked as spam. Runninggit push -vjust hangs again.Experimental-Mathematics– Experimental-Mathematics2025-09-29 12:21:58 +00:00CommentedSep 29 at 12:21 - 1"Running
git push -vjust hangs again." Any output?phd– phd2025-09-29 12:24:01 +00:00CommentedSep 29 at 12:24 - 1Try HTTPS.Swicth protocol,create a PAT (you cannot push to GitHub with your web password), push.phd– phd2025-09-29 12:31:08 +00:00CommentedSep 29 at 12:31
- 1Never mind, I made a mistake earlier---it worked! I just made a push from my laptop again! Thank you so much!Experimental-Mathematics– Experimental-Mathematics2025-09-29 12:57:02 +00:00CommentedSep 29 at 12:57