M
M
Maxim Anarchistov2016-05-11 19:27:58
git
Maxim Anarchistov, 2016-05-11 19:27:58

How to set up GIT on a server with RSA key authorization?

I have a server (Ubuntu 12, Apache2) that should host repositories (which are separate virtual Apache servers). Git/gitweb is currently installed and the repository is created via git init.
I need to configure access to the GIT server through the SSH protocol, the authorization of which passes through the RSA key.
How to do it? Manuals or detailed explanations would be very helpful.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
O
O Di, 2016-05-11
@insiki

U're welcome.
Git on the server - Gitolite
Git on the server - Gitosis

A
Anatoly Evladov, 2016-05-11
@Visteras

Um ... of course you will excuse me, but if this is not critical for you - see how docker works and run the same gitlab through it.
In general, the port to be used must be specified in the git config. As a rule, this is port 22, respectively, on the server for authorization, you need to change port 22 to some other one. Regarding authorization - through the github in the profile, a person seems to be able to upload his personal key. So everything seems to be simple. Or it was like this about 4 years ago when I last raised a git server trying to put it together with my hands. So I highly recommend using docker.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question