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

Re: [PATCH] Ensure that SSH runs in non-interactive mode

From
Jeff King <peff@peff.net>
Date
Jul 21, 2008, 07:05 UTC
Message-ID
<20080721070517.GB2080@sigill.intra.peff.net>
In-Reply-To
<20080721065348.GB24608@glandium.org>
On Mon, Jul 21, 2008 at 08:53:48AM +0200, Mike Hommey wrote:
> I'm not sure the ControlMaster option is still followed when using -T. 
It is still followed.
> Also, IIRC, ControlMaster doesn't exit until slave connections are
> done, so git ssh sessions granted the master control would stall until
> then if they happen to have slaves launched. i.e. It can *already* have
> bad side effects.

Yes, that is a problem (and IMHO a weakness in the implementation, but obviously not git's problem at all).

> Adding '-S none' would ensure ControlMaster would not take effect; on

I think that is definitely a mistake; git is one of the main reasons I use ControlMaster in the first place.

> the other hand, it would not allow git's ssh connection to be a slave
> either. '-o ControlMaster no' could be a solution.

That is actually quite sensible, and would make this a non-issue, as far as I can see.

> All these need to be tested, obviously.

I tested, and doing "ssh -Tx -o 'ControlMaster no'" does the right thing (reuse existing session if possible, create a new one with -Tx otherwise, and never create a control socket for slaves).

-Peff
Previous: Mike Hommey
Message 16 of 16 in “Ensure that SSH runs in non-interactive mode”
  1. Ensure that SSH runs in non-interactive modeFredrik Tolf, Jul 19, 2008
  2. Mike HommeyJul 19, 2008
  3. Keith PackardJul 19, 2008
  4. Fredrik TolfJul 19, 2008
  5. Johannes SchindelinJul 20, 2008
  6. Fredrik TolfJul 20, 2008
  7. Johannes SchindelinJul 20, 2008
  8. Fredrik TolfJul 20, 2008
  9. Junio C HamanoJul 20, 2008
  10. Johannes SchindelinJul 20, 2008
  11. Junio C HamanoJul 20, 2008
  12. Johannes SchindelinJul 20, 2008
  13. Steffen ProhaskaJul 21, 2008
  14. Jeff KingJul 21, 2008
  15. Mike HommeyJul 21, 2008
  16. Jeff KingJul 21, 2008

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.