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

Re: [PATCH] Use SSH key from `GIT_SSH_KEY` variable if supplied

From
Robin H. Johnson <robbat2@gentoo.org>
Date
Mar 20, 2012, 02:07 UTC
Message-ID
<robbat2-20120320T020552-803311730Z@orbis-terrarum.net>
In-Reply-To
<7vhaxk829x.fsf@alter.siamese.dyndns.org>
On Mon, Mar 19, 2012 at 06:55:06PM -0700,  Junio C Hamano wrote:
Show 8 quoted lines
> Hmm. I am somewhat torn.
> 
> The minimalist in me finds this extraneous and unnecessary noise.  Why
> should the user always set GIT_SSH_KEY environment variable that only
> applies to git and does not help his other ssh sessions?  Why isn't having
> an entry in .ssh/config to name IdentityFile sufficient?
> 
> Would GIT_SSH_ARGS='-i /home/me/.ssh/there.pub -l me' be more appropriate?

I'd strongly prefer a generic args support, for making it easier to use in deployment code.

-- 
Robin Hugh Johnson
Gentoo Linux: Developer, Trustee & Infrastructure Lead
E-Mail     : robbat2@gentoo.org
GnuPG FP   : 11ACBA4F 4778E3F6 E4EDF38E B27B944E 34884E85
Previous: Junio C HamanoNext: Maciej Małecki
Message 3 of 4 in “Use SSH key from `GIT_SSH_KEY` variable if supplied”
  1. Use SSH key from `GIT_SSH_KEY` variable if suppliedMaciej Małecki, Mar 20, 2012
  2. Junio C HamanoMar 20, 2012
  3. Robin H. JohnsonMar 20, 2012
  4. Maciej MałeckiMar 20, 2012

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.