git/list[1] front-page[2] threads[3] people[4] search[5] about
 

gitosis asking for password

From
TGTim Guirgies <lt.infiltrator@gmail.com>
Date
May 31, 2011, 15:49 UTC
Message-ID
<20110531154954.GB4483@Imperial-SSD-Overlord>
Hi List,

I've been at this for a few days now, to no avail. It all began when gitosis stopped liking me, and whenever I tried to fetch from or push to my gitosis server, it gave me a 'fatal: x does not appear to be a git repo' error.

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

$ 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. ...

$ 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 gitosis@overlord.imperial.fleet:gitosis-admin Cloning into gitosis-admin... gitosis@overlord.imperial.fleet's password: Permission denied, please try again.

Of course, it's not meant to ask me for a password, and no matter what I type, it won't work anyway, as it's disabled.

So, did I miss something?  Does anybody know some gitosis magic?
Tim
[1] http://scie.nti.st/2007/11/14/hosting-git-repositories-the-easy-and-secure-way
-- 
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org   - against proprietary attachments
Next: Matthieu Moy
Message 1 of 3 in “gitosis asking for password”
  1. Tim GuirgiesMay 31, 2011
  2. Matthieu MoyMay 31, 2011
  3. Tim GuirgiesJun 1, 2011

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.