Skip to contentSkip to conversation

User Authentication ?

DISCUSSION Neshama Parhoti 2 participants 4 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi All,

I want to setup a git server on the web but I need user authentication.

Quoted 1 line

From what I understand, currently git-daemon does not support authentication.

Is there any way to achieve that ?

I really don't want to give ssh logins for people who I just want to be able to access my repository...

Thank you,
Pnesh.

#1 lore raw
Quoted 5 lines · Neshama Parhoti

I want to setup a git server on the web but I need user authentication.

From what I understand, currently git-daemon does not support authentication.

The purpose of git-daemon is to allow fast (and bandwidth-saving) anonymous read-only (fetch) access to git repositories. The ability to push via git-daemon was added later, and is turned off by default because it should be used only in special situation.

Quoted 1 line

Is there any way to achieve that ?

The reason behind git-daemon not supporting authentication is that re-implementing authentication poorly is a bad idea.

If you need authentication there is SSH that provides authentication (for ssh:// protocol), or WebDAV (for HTTP push protocol). Perhaps also future "smart" HTTP server would support some kind of authentification...

Quoted 2 lines

I really don't want to give ssh logins for people who I just want to be able to access my repository...

First, you can always set git-shell as shell for those git only accounts. Second, you can set up Gitosis, which IIRC needs only single account, and handles authentication by itself; I have heard also of ssh_acl in this context...

I don't know if there is some other equivalent of Gitosis...

HTH

Signature · 3 lines
Jakub Narebski
Poland
ShadeHawk on #git
#2 lore raw

Hi,

Quoted 9 lines · Jakub Narebski
Quoted 4 lines · Neshama Parhoti

I want to setup a git server on the web but I need user authentication.
I really don't want to give ssh logins for people who I just want to be able to access my repository...

First, you can always set git-shell as shell for those git only accounts.

Thank you ! That should really be good. Any chance you are aware of documentation
or further guidance about how to set this up ?
thanks!

#3 lore raw
Quoted 8 lines · Neshama Parhoti
Quoted 7 lines · Jakub Narebski
Quoted 4 lines · Neshama Parhoti

I want to setup a git server on the web but I need user authentication.
I really don't want to give ssh logins for people who I just want to be able to access my repository...

Quoted 5 lines
Quoted 2 lines

First, you can always set git-shell as shell for those git only accounts. [...]

Thank you ! That should really be good. Any chance you are aware of documentation or further guidance about how to set this up ?

I have never had the need, but for Gitosis the seminal reference is I think
"Hosting Git repositories, The Easy (and Secure) Way"
http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way

Signature · 2 lines
Jakub Narebski
Poland