A
A
Andrey Prokopyuk2012-05-03 12:42:34
git
Andrey Prokopyuk, 2012-05-03 12:42:34

How to provide access to Git on the server, without a web interface?

You often see articles about how to make a server for Git, but I never found information that would fit the right case.

You need to do this:

  • The server is accessed via the git:// protocol, no web interface is required.
  • For any operation, authorization is requested - when git clonethere must also be a key request.


It is desirable that the information concerns Debian GNU/Linux.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
larikov, 2012-05-03
@Andre_487

gitolite not suitable? All of the above I think

S
slavaz, 2012-05-03
@slavaz

> It doesn't matter, ssh is also possible. The main thing is that it works) Git is much more difficult to set up than SVN.
In the case of ssh, it's easier to set up than SVN.
git clone ssh://[email protected]/path/to/git/source
and that's it. You can play around with ssh-keygen further to walk with a specific password (or even no password at all). Security can be enhanced. by selecting a separate user (git for example) and giving him the /usr/bin/git-shell shell, and then through ssh keys to give access to the repository to different individuals.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question