1

I'm using Gitolite for version control.

I want to restrict public access on Gitolite.

When anonymous tried to access Git repository, I want to force a prompt for authentication.

How can I restrict public access on Gitolite?

Thank you.

Junyoung
  • 11
  • 1
  • It looks like gitolite can use ssh authentication: http://gitolite.com/gitolite/glssh/ Have you tried setting that up? – Fantastic Mr Fox Apr 11 '18 at 08:22
  • What have you tried already? Are you serving git using http(s) or ssh or both? Point to the steps in the online documentation that you have followed and what is not working for you. – Mort Apr 11 '18 at 14:25

1 Answers1

0

The goal of gitolite is to restrict public access, so you are on the right track.
See "How do programs like gitolite work?".

If your Gitolite server offers only SSH, then any anonymous access will have to follow the directives of your Gitolite conf file.
Unless that configuration file in your gitolite-admin repo references the special group @all, then an anonymous access would be denied.

If your Gitolite server offers an HTTPS listener, then the authentication burden lies with that HTTPS server: see "Need a password prompt for GITOLITE": gitolite is an authorization service, not an authentication one.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250