Mihamina Rakotomandimby <mihamina@xxxxxxxxxx> wrote: > 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. -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html