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

Re: [JGIT PATCH 2/2] Add support for ~/.ssh/config BatchMode

From
Robin Rosenberg <robin.rosenberg@dewire.com>
Date
Sep 16, 2008, 22:46 UTC
Message-ID
<200809170046.31859.robin.rosenberg@dewire.com>
In-Reply-To
<1221579869-27835-2-git-send-email-spearce@spearce.org>
tisdagen den 16 september 2008 17.44.29 skrev Shawn O. Pearce:
Show 5 quoted lines
> Connections created through batch processes (e.g. those started by
> cron) don't have a terminal to interact with a user through.  A
> common way to disable password prompting with OpenSSH is to setup
> a Host block in ~/.ssh/config with "BatchMode yes" enabled, thus
> telling the client not to prompt for passphases or passwords.

That did not work when any of the identities in ~/.ssh matched. Though I specifically told jgit to use an identity that should not work, it found another that did. During setup all identities are loaded and made available to JSch.

That bug is not related to this code (so I pushed it) other than it made it tricky to test. OpenSSH only tries the identity I tell it to, or default if not told.

-- robin
Previous: Shawn O. PearceNext: Shawn O. Pearce
Message 3 of 4 in “Add support for ~/.ssh/config PreferredAuthentications”
  1. 1/2 Add support for ~/.ssh/config PreferredAuthenticationsShawn O. Pearce, Sep 16, 2008
  2. 2/2 Add support for ~/.ssh/config BatchModeShawn O. Pearce, Sep 16, 2008
  3. Robin RosenbergSep 16, 2008
  4. Shawn O. PearceSep 16, 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.