1

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 write git 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. Using git 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 running ssh -vT [email protected]:

suednym@nashton:~$ ssh -vT [email protected]
debug1: OpenSSH_10.0p2 Debian-8, OpenSSL 3.5.3 16 Sep 2025
debug1: Reading configuration data /home/suednym/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Reading configuration data /etc/ssh/ssh_config.d/20-systemd-ssh-proxy.conf
debug1: /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 -1
debug1: identity file /home/suednym/.ssh/id_rsa-cert type -1
debug1: identity file /home/suednym/.ssh/id_ecdsa type -1
debug1: identity file /home/suednym/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/suednym/.ssh/id_ecdsa_sk type -1
debug1: identity file /home/suednym/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file /home/suednym/.ssh/id_ed25519 type 3
debug1: identity file /home/suednym/.ssh/id_ed25519-cert type -1
debug1: identity file /home/suednym/.ssh/id_ed25519_sk type -1
debug1: identity file /home/suednym/.ssh/id_ed25519_sk-cert type -1
debug1: identity file /home/suednym/.ssh/id_xmss type -1
debug1: identity file /home/suednym/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_10.0p2 Debian-8
debug1: Remote protocol version 2.0, remote software version 550beff
debug1: compat_banner: no match: 550beff
debug1: Authenticating to github.com:22 as 'git'
debug1: load_hostkeys: fopen /home/suednym/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: algorithm: sntrup761x25519-sha512
debug1: kex: host key algorithm: ssh-ed25519
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: SSH2_MSG_KEX_ECDH_REPLY received
debug1: Server host key: ssh-ed25519 SHA256:+DiY3wvvV6TuJJhbpZisF/zLDA0zPMSvHdkr4UvCOqU
debug1: load_hostkeys: fopen /home/suednym/.ssh/known_hosts2: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory
debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory
debug1: Host 'github.com' is known and matches the ED25519 host key.
debug1: Found key in /home/suednym/.ssh/known_hosts:4
debug1: ssh_packet_send2_wrapped: resetting send seqnr 3
debug1: rekey out after 134217728 blocks
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: ssh_packet_read_poll2: resetting read seqnr 3
debug1: SSH2_MSG_NEWKEYS received
debug1: rekey in after 134217728 blocks
debug1: SSH2_MSG_EXT_INFO received
debug1: 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 received
debug1: Authentications that can continue: publickey
debug1: Next authentication method: publickey
debug1: get_agent_identities: bound agent to hostkey
debug1: get_agent_identities: agent returned 1 keys
debug1: Will attempt key: /home/suednym/.ssh/id_ed25519 ED25519 SHA256:ADkBGmza5yaErxSSoUHdfHycyU3PJOidGiki6DeTSY0 agent
debug1: 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 agent
debug1: Server accepts key: /home/suednym/.ssh/id_ed25519 ED25519 SHA256:ADkBGmza5yaErxSSoUHdfHycyU3PJOidGiki6DeTSY0 agent

What am I missing? What should I try?

Operating system is Debian GNU/Linux forky/sid, and git is version 2.51.0.

8
  • 2
    To debug git push try git push -v (--verbose). Commented Sep 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. Running git push -v just hangs again. Commented Sep 29 at 12:21
  • 1
    "Running git push -v just hangs again." Any output? Commented Sep 29 at 12:24
  • 1
    Try HTTPS. Swicth protocol, create a PAT (you cannot push to GitHub with your web password), push. Commented Sep 29 at 12:31
  • 1
    Never mind, I made a mistake earlier---it worked! I just made a push from my laptop again! Thank you so much! Commented Sep 29 at 12:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.