Creating a remotely accessable GIT repository, OpenSuSE 11.2

Wondering if someone can lend some insight or point me in the right direction. I’m trying to use OpenSuSE 11.2 to host a master copy of a git repository.

I’ve followed the cues here:
Everyday GIT With 20 Commands Or So

I’m guessing that I’ve still got a disconnect with xinet.d starting the git-daemon in response to a port 9418 request as I never see git show up as a process, even though I see in the message logs, the remote machine making the network request.

Any help/tips/links would be greatly appreciated.

  • John “S”

Ok, pulled my head out, going to answer my own request for help here.

Once git-core and friends are installed, DON’T touch xinet.d or init.d/git-daemon. Instead, configure the following two lines in the /etc/sysconfig/git-daemon

GIT_DAEMON_ARGS="–export-all --syslog"

The path arg should point to your own “root” directory for git. In the daemon args, I used export-all because I am on a home network, and didn’t need to deal with the export control files in the root of the git tree(s).

The last and only other thing you need to do under SuSE 11.2 anyway, is go to the Yast Runlevel editor and “enable” git-daemon". Well, maybe one other thing - you may need to go to the yast firewall config, and enable port 9418/git for TCP and UDP connections.

  • John “S”

Hi **JohnSuykerbuyk, **](http://forums-opensuse.provo.novell…/…/members/johnsuykerbuyk.html)
is there any command that will allow me to check and view that repository from a different machine
for example after i done what you have written, i tyred to clone the repository with git clone ssh:// my_local_test
and i am constanly getting the error ssh: connect to host port 22: Bad file number

from putty i am able to connect automatically without typing my password because i am using certificate.
How can i really see that git is running properlly, i see only the deamon but how can i connect to that deamon

netstat -apn|grep -i git
tcp 0 0* LISTEN 28917/git-daemon
tcp 0 0 :::9418 :::* LISTEN 28917/git-daemon