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

Re: git + ssh + key authentication feature-request

From
MWMark Wooding <mdw@distorted.org.uk>
Date
Feb 9, 2006, 00:55 UTC
Message-ID
<slrndul4oi.2i8.mdw@metalzone.distorted.org.uk>
In-Reply-To
<7vacd1mkk9.fsf@assigned-by-dhcp.cox.net>
Junio C Hamano <junkio@cox.net> wrote:
> Correct modulo s/git-daemon/git-shell/.
D'oh!  Finger trouble!
Show 8 quoted lines
> Now, you brought up an interesting way to do this without using
> unix uid.  Some sshd installations do not honour environment=
> settings, but that problem aside, you could define a token, say
> GIT_USER, with different value on each line in the shared
> authorized_keys file so that you can distinguish incoming
> developers that share the same "home directory", and change the
> example hook Carl gave us to use that token instead of the unix
> user identity.  I'd imagine that would work quite well.
Quite possibly.

Don't give me the credit here, by the way. I completely stole this whole idea from the Subversion documentation: see `SSH configuration tricks' in

  http://svnbook.red-bean.com/nightly/en/svn.serverconfig.svnserve.html
at the bottom.

Oh, any my mistake: the `environment...' options go at the beginning of an authorized_keys line, not at the end.

It's so time I went to sleep.
-- [mdw]
Previous: Junio C HamanoNext: Nicolas Vilz 'niv'
Message 9 of 15 in “git + ssh + key authentication feature-request”
  1. Nicolas Vilz 'niv'Feb 8, 2006
  2. Junio C HamanoFeb 8, 2006
  3. Nicolas Vilz 'niv'Feb 8, 2006
  4. Linus TorvaldsFeb 8, 2006
  5. Nicolas Vilz 'niv'Feb 9, 2006
  6. Junio C HamanoFeb 8, 2006
  7. Mark WoodingFeb 9, 2006
  8. Junio C HamanoFeb 9, 2006
  9. Mark WoodingFeb 9, 2006
  10. Nicolas Vilz 'niv'Feb 9, 2006
  11. Linus TorvaldsFeb 8, 2006
  12. Nicolas Vilz 'niv'Feb 9, 2006
  13. Junio C HamanoFeb 8, 2006
  14. Nicolas Vilz 'niv'Feb 9, 2006
  15. Alan ChandlerFeb 8, 2006

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.