git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: simplest git deamon?

From
Shawn O. Pearce <spearce@spearce.org>
Date
Apr 12, 2010, 14:22 UTC
Message-ID
<20100412142203.GB6313@spearce.org>
In-Reply-To
<20100412164740.740050cb@pbmiha.malagasy.com>
Mihamina Rakotomandimby <mihamina@gulfsat.mg> wrote:
Show 17 quoted lines
> Manao ahoana, Hello, Bonjour,
> 
> I would like to setup a git repository, on a Debian machine.
> I would like to access it only with git:// (no http://, no ssh://,...)
> 
> How to implement read/write restriction when just wanting to use
> "git://" without dealing with SSH?
> 
> http://www.kernel.org/pub/software/scm/git/docs/everyday.html, at it's
> bottom tlak about this but it requires SSH.
> https://help.ubuntu.com/community/Git talks about gitosis, but it
> requires keys.
> 
> I have the GIT repository setup, with the "git://"-only access scheme, 
> but anyone may push into this.
> 
> I expected just a flat file the SVN way (But I dont want to use SVN):
Git isn't SVN.

The git:// daemon is *anonymous*. It has no authentication capability, nor will it probably ever learn how to authenticate users. Consequently you can't do what you want with it.

Instead of reinventing the wheel poorly, Git relies on external servers to perform the authentication. So if you want authenticated access, you will need to use either SSH or HTTP.

If you use SSH, lots of people get by with Gitosis, as its fairly simple to configure. Another option is to use something much more complex like Gerrit Code Review[1] that contains its own SSH server.

If you use HTTP, use the newer git-http-backend[2] that was introduced in Git 1.6.6 (or later), running behind an Apache HTTP server.

[1] http://code.google.com/p/gerrit/
[2] http://www.kernel.org/pub/software/scm/git/docs/git-http-backend.html
 
-- 
Shawn.
Previous: Mihamina RakotomandimbyNext: Tomas Carnecky
Message 2 of 5 in “simplest git deamon?”
  1. Mihamina RakotomandimbyApr 12, 2010
  2. Shawn O. PearceApr 12, 2010
  3. Tomas CarneckyApr 12, 2010
  4. Matthieu MoyApr 12, 2010
  5. Ilari LiusvaaraApr 12, 2010

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.