Skip to contentSkip to conversation

gitosis asking for password

DISCUSSION Tim Guirgies 2 participants 2 messages Jun 15, 2016

lore
Share & tools
lore
#0 lore raw

Hi List,

I've been trying to sort this out for a couple of days now, but have gotten absolutely nowhere.

For some reason, a few days ago, gitosis just stopped liking me, and I was unable to push or fetch from my gitosis server, getting the error message 'fatal: x does not appear to be a git repo'.

So, I decided to remove gitosis and start again. Following this [1] guide, this is what I did/got:

$ sudo adduser --system --shell /bin/sh --gecos 'git version control' --group --disabled-password --home /home/gitosis gitosis
Adding system user `gitosis' (UID 119) ...
Adding new group `gitosis' (GID 128) ...
Adding new user `gitosis' (UID 119) with group `gitosis' ...
Creating home directory `/home/gitosis' ...
$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/tim/.ssh/id_rsa): 
Created directory '/home/tim/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/tim/.ssh/id_rsa.
Your public key has been saved in /home/tim/.ssh/id_rsa.pub.
The key fingerprint is:
bb:04:a6:f0:68:e8:4f:89:0b:60:6e:35:5b:29:50:58 [email protected]
$ sudo -H -u gitosis gitosis-init < /home/tim/.ssh/id_rsa.pub 
Initialized empty Git repository in
/home/gitosis/repositories/gitosis-admin.git/
Reinitialized existing Git repository in
/home/gitosis/repositories/gitosis-admin.git/
$ git clone [email protected]:gitosis-admin
Cloning into gitosis-admin...
gitosis@localhost's password: 

But of course, it shouldn't be asking me for a password, and nothing I type will work anyway, as it's a disabled password.

I've tried it a few times, completely purging the gitosis user and its home directory, but with the same results. Has anybody had similar experiences? Or does somebody know some magic trick to get gitosis working? Did I miss a step?

Tim

[1] http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way

Signature · 2 lines
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org   - against proprietary attachments
#1 lore raw
Quoted 11 lines · Tim Guirgies

Hi List,

I've been trying to sort this out for a couple of days now, but have gotten absolutely nowhere.

For some reason, a few days ago, gitosis just stopped liking me, and I was unable to push or fetch from my gitosis server, getting the error message 'fatal: x does not appear to be a git repo'.

So, I decided to remove gitosis and start again. Following this [1] guide, this is what I did/got:

<snip>

Quoted 7 lines
$ git clone [email protected]:gitosis-admin
Cloning into gitosis-admin...
gitosis@localhost's password: 

But of course, it shouldn't be asking me for a password, and nothing I type will work anyway, as it's a disabled password.

Quoted 6 lines

I've tried it a few times, completely purging the gitosis user and its home directory, but with the same results. Has anybody had similar experiences? Or does somebody know some magic trick to get gitosis working? Did I miss a step?

[1] http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way

Hi Tim,
You'll notice that the year on that is 2007. I seem to recall the lack of support factor is [a large part of] why Sitaram Chamarty gave the world Gitolite (https://github.com/sitaramc/gitolite ).
You may still be able to find some help with Gitosis, but I'd not risk blacking out due to holding my breath too long if I were you.

Signature · 4 lines
-Drew Northup
________________________________________________
"As opposed to vegetable or mineral error?"
-John Pescatore, SANS NewsBites Vol. 12 Num. 59