3

I installed git with gitolite on my vserver using this tutorial.

But I've got a problem to clone the gitolite-admin repo to my computer. The user is created with the option --disabled-password

But if I try to clone with

git clone git@<server>:gitolite-admin.git

he asks not only for the passphrase of my rsa_key but also for the password of the gituser.

Anyone an idea? I thought the user is created without password and I don't know what to type in

Sven Jung
  • 179
  • 2
  • 8

2 Answers2

4

he asks not only for the passphrase of my rsa_key but also for the password of the gituser.

That means the ssh has failed to authenticate the request through the public_key (either because said public key hasn't been found on the client side, or is incorrectly registered on the server side, or the passphrase hasn't been provided, is the key is passphrase protected, by an ssh-agent).
In that case, ssh default to an account password for identification (wether or not the account is created with a password).

Do a ssh -Tvvv git@<server> to better troubleshoot what exactly causes the ssh command to fail.

VonC
  • 2,653
  • 5
  • 29
  • 48
1

I had the same problem, I solved it by adding

AllowUsers git

in /etc/ssh/sshd_config file

EFalco
  • 111
  • 2