Comment 1 for bug 502093

Revision history for this message
Vortex Cortex (vortex-cortex) wrote : Re: Password request when trying to clone gitosis-admin.git

I had this problem as well. Git uses SSH for authentication.

Check the output of the following command:

grep "AllowUsers" /etc/ssh/sshd_config

If "AllowUsers" is present in the SSH daemon config, make sure you include the "git" user.

eg: My "/etc/ssh/sshd_conf" file contained this line:
AllowUsers vortexcortex

I edited the file via this command:
gksudo gedit /etc/ssh/sshd_conf

Then, I changed the AllowUsers line to read:
AllowUsers vortexcortex git

I saved the file, quit the editor and finally restarted my SSH daemon:
sudo /etc/init.d/ssh restart

(I have also had success via removing the AllowUsers line completely)