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

Re: How to see command line arguments passed to program in core.sshcommand?

From
Derrick Stolee <stolee@gmail.com>
Date
Sep 24, 2019, 17:12 UTC
Message-ID
<55e607a9-f004-e6a0-3faf-1112fbaf96c3@gmail.com>
In-Reply-To
<CAH8yC8nVBcBntJVZ6eV+YxoBpZRx+ecC2JxGuunhxNbY2cGyFQ@mail.gmail.com>
On 9/22/2019 11:17 PM, Jeffrey Walton wrote:
Show 21 quoted lines
> Hi Everyone,
> 
> I'm working in an unusual setup on WIndows. I need to 'git clone' over
> SSH, but a third party program has to handle the tunnel. It happens by
> using this git configuration:
> 
>     git config --global core.sshcommand "tunnel.exe ... <path-to-public-key>"
> 
> After I execute the 'git config' command, I open ~/.gitconfig and
> ensure the path is correct and quoted per Windows standards.
> 
> So far the result has been a failed authentication, which seems to
> indicate something went sideways using the public key. I don't receive
> an error from Git or or the tunnel program relating to a "file not
> found" (or any errors for that matter until authentication fails).
> 
> I need to spy the command line arguments being passed around, but I
> have not been able to do so. 'git clone -verbose' is ineffective, and
> -vvv is rejected as an unknown option.
> 
> How do I see command line arguments passed to the program in core.sshcommand?

Have you tried GIT_TRACE=1 or GIT_TRACE2=1? Both options should record a log entry for any spawned processes.

(You can also point these to fully-qualified filenames.)

Thanks, -Stolee

Previous: SZEDER Gábor
Message 5 of 5 in “How to see command line arguments passed to program in core.sshcommand?”
  1. Jeffrey WaltonSep 23, 2019
  2. SZEDER GáborSep 23, 2019
  3. Jeffrey WaltonSep 23, 2019
  4. SZEDER GáborSep 23, 2019
  5. Derrick StoleeSep 24, 2019

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.