How to set up a Git server that uses User / Password?

I need to create a Git server that allows clients from Window and * nix to read and write. There are many tutorials that show how to build a gitolite server on top of ssh, which required clients to send public keys. But it is annoying to generate keys and reconfigure gitolit every time I want to pull / push my source to / from some computer.

Is it possible to build a Git server simply with a user / password?

Thanks jack

+4
source share
1 answer

The git standard does not require the use of a key pair. If you do not have a public key, it will simply ask for a password when interacting with the server.

However, the requirement is that each member has a * nix account on the server. Setting up anonymous read-only repo access with git-daemon .

However, I think you misunderstood the key material. You only need to configure the material and generate keys once for each new user, not every time you access the repo.

0
source

Source: https://habr.com/ru/post/1385498/


All Articles