Git Push Hangs after a few taps

I run Ubuntu Linux, open a terminal, edit the code and happily execute

git push origin master

However, after a certain period of time (sometimes 30 minutes, sometimes several hours), the exact same command will hang (no output at all).

When i try

ssh -v git@github.com

I get the following answer:

OpenSSH_5.8p1 Debian-1ubuntu3, OpenSSL 0.9.8o 01 Jun 2010
debug1: Reading configuration data /home/avitus/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: auto-mux: Trying existing master

And then freezes again. It seems I can no longer use SSH for git as soon as I find SSH on another server. Any ideas how to fix this? It kills me to restart every time.

Update:

The problem disappears when I delete the following two lines (intended to facilitate sharing) from ~ / .ssh / config

ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
+5
source share
1 answer

...

ssh -v:

debug1: auto-mux: Trying existing master

... , SSH SSH . , , , .

ControlMaster ssh_config(5). , "" SSH /tmp, , , . ​​ auto, , .

+2

All Articles