I am using git over hamachi vpn and am able to clone the remote repository.

However, git pull/fetch fails after hanging for a long time. The error message displayed is:

Write failed: Broken pipe                                                                                      
fatal: The remote end hung up unexpectedly 

Can anyone guess whats happening?

  • 2
    same error with me - any way to find out what's going wrong? Aug 10, 2011 at 16:56
  • Did you use the git protocol to clone the repository? It may be worth it to try and use https:// instead of git:// and see if that works. I believe git:// defaults to using SSH and something in your configuration may be blocking that port.
    – sbtkd85
    Aug 10, 2011 at 17:14
  • @sbtkd85 i can ssh to that machine.
    – sud03r
    Aug 10, 2011 at 17:24
  • the other guy is using gitosis, and there is no authorization problem.
    – sud03r
    Aug 10, 2011 at 17:33
  • That is weird. Maybe the SSH keys are corrupted or incorrect. When you SSH does it automatically log you in, or do you have to authenticate every time? Also, I'd still be interested to know if you clone the repository via https:// instead of git:// if you still have issues doing push/pull.
    – sbtkd85
    Aug 11, 2011 at 13:02

2 Answers 2


Git push fails with

fatal: The remote end hung up unexpectedly

If, when attempting git push, you get a message that says:

fatal: The remote end hung up unexpectedly

There are a couple of reasons for that, but the most common is that authorization failed. You might be using a git:// URL to push, which has no authorization whatsoever and hence has write access disabled by default. Or you might be using an ssh URL, but either your public key was not installed correctly, or your account does not have write access to that repository/branch.

  • i guess u have misread, I am talking of pull.
    – sud03r
    Aug 10, 2011 at 17:23

I had the same problem and resolved it with this command:

echo 1400 > /sys/class/net/eth0/mtu

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .