Jump to content
  • Advertisement
Sign in to follow this  

Setting up git daemon

This topic is 2900 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts


I am trying to set up a git daemon so that I can let people anonymously pull repos from my server. The problem is that every time I pull from the server I get the following message

$ git clone git://hostname/repo.git
Cloning into repo...
fatal: the remote end hung up unexpectedly

Note, this is not an issue with ssh keys because I can happily clone via ssh without any problem and the point of allowing this protocol through is so that users do not need to be authenticated. The problem seems to be the way I've setup inetd or something. inetd wasn't installed so I installed that and added the following line to /etc/inetd.conf

git stream tcp nowait nobody /usr/bin/git git daemon --inetd --verbose --export-all --base-path=/pub/repos

I also added a new rule to my router to allow tcp on port 9418, which corresponds to git in /etc/services.

At this point I believe that the server is just not letting the remote user connect, but I don't know how to test that. Does anyone have experience setting this up or have an suggestions on how to debug it?


Share this post

Link to post
Share on other sites
Sign in to follow this  

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!