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

Re: How does gitosis know who the key belongs to

From
Matthieu Moy <matthieu.moy@grenoble-inp.fr>
Date
Sep 25, 2009, 08:20 UTC
Message-ID
<vpqhburigfs.fsf@olympe.imag.fr>
In-Reply-To
<26ae428a0909242315x3cf1aafcue004a73f5c471450@mail.gmail.com>
Howard Miller <howard@e-learndesign.co.uk> writes:
Show 6 quoted lines
> Ahh... just read Heiko's post properly and actually looked at the
> authorized_keys file. This is now starting to make some sense. So the
> name in config has to match that sent to gitosis-server presumably. I
> still don't quite see the cause and effect. If I don't like being
> howard@x.y.z and would rather be just 'howard' what can I change? It
> tells me not to edit that file!

If you're confused with "name", then just think about "filename holding the key".

If you want to name yourself "howard", then put your key in keydir/howard and then use "howard" in the config file. gitosis will add the relevant

command="gitosis-server howard" ssh-whatever <your-key-here> <irrelevant-comment>
to the ~git/.ssh/auhtorized_keys file.

You chose your "name" by chosing the filename, then you use this name in the config file, and then gitosis does the job.

-- 
Matthieu Moy
http://www-verimag.imag.fr/~moy/
Previous: Howard MillerNext: Howard Miller
Message 6 of 9 in “How does gitosis know who the key belongs to”
  1. Howard MillerSep 24, 2009
  2. Heiko VoigtSep 24, 2009
  3. Matthieu MoySep 24, 2009
  4. Howard MillerSep 25, 2009
  5. Howard MillerSep 25, 2009
  6. Matthieu MoySep 25, 2009
  7. Howard MillerSep 25, 2009
  8. Heiko VoigtSep 25, 2009
  9. Sitaram ChamartySep 25, 2009

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.