Friday, April 1, 2022

[SOLVED] Git stuck on push, pull, clone, everything

Issue

It's a few days that whenever I try to push a commit to the remote branch, pull, clone with ssh (http clone works fine): it just gets stuck, without any error message or so on, nothing, just stuck

I tried reinstalling Git, removing and purging it and reinstalling, removing the .gitconfig folder, removing the ssh key and creating a new one as explained here, but nothing worked...

After purging and removing .gitconfig and changing the key it achieved to do ONE ssh clone and ONE push, then again it got stuck...

What can be the cause of this problem? I'm desperate :( (I'm running Kubuntu 22.04 and trying to push on GitHub)

thanks in advance!

EDIT: okay perhaps I finally understood what the problem is: my router. If I connect to my mobile hotspot everything works just fine... EDIT 2: if I connect with the ethernet cable it has this problem, but if I try to connect to the wifi of the same exact router it works fine...

is there a way to resolve this problem without changing the router?


Solution

finally found a workaround: running

sudo /sbin/iptables -A OUTPUT -t mangle -p tcp --dport 22 -j TOS --set-tos 0x00

fixes the problem for the current session



Answered By - Tubbadu
Answer Checked By - Marie Seifert (WPSolving Admin)