Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a Git server, and I want to make it usable by all Kerberos-logged users.

eg: if a user has a valid Kerberos ticket, she can start pushing to Git without having to provide any username/password.

Is it even possible to do this with Git?
All I could find was this old unanswered question on the Git mailing list (with http://), and this project that says it is out-of-date (with git://).

Server is on Ubuntu 2012.10, but I could move it to Windows Server 2012 if necessary.
I can dictate which software to use on client-side.

share|improve this question
up vote 1 down vote accepted

Author of out-of-date project here; your best bet is to configure SSH to accept kerberos tickets for authentication -- it's straightforward and well documented across the internet.

If that doesn't meet your requirements for whatever reason, you could fall back to using git-http-backend to serve git over http{,s}, and then apache's mod_auth_kerb to authenticate access to that. I've had success with this, but it's fiddly to set up.

(mod_auth_kerb is libapache-mod-auth-kerb on ubuntu, git comes with git-http-backend)

share|improve this answer

You can make the server user SSH with kerberos (just google for kerberos and SSH) and then git also will work with those kerberos users when you user git+ssh.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.