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

Re: git credential-osxkeychain bug/feature?

From
Jeff King <peff@peff.net>
Date
Jan 26, 2018, 00:51 UTC
Message-ID
<20180126005105.GD14017@sigill.intra.peff.net>
In-Reply-To
<7445BC5F-F041-4E7D-8CB5-9513EEFF2C8C@me.com>
On Thu, Jan 25, 2018 at 12:16:33PM -0500, Robert Leach wrote:
> But perhaps access to KA from a remote ssh session is restricted for
> security reasons?  I'm just curious I suppose.  Should/can this work?

It's definitely not a restriction from the osxkeychain credential helper. I believe that MacOS only unlocks the keychain for console logins by default.

Googling around I turned up this[1]:
  security unlock-keychain -p <YourPassword> ~/Library/Keychains/login.keychain

but I don't even have a mac these days to see if that still works. And according to [2] you may have to fiddle with auto-confirmation. Good luck. :)

-Peff
[1] https://superuser.com/questions/270095/when-i-ssh-into-os-x-i-dont-have-my-keychain-when-i-use-terminal-i-do
[2] https://apple.stackexchange.com/questions/178139/how-can-i-access-the-keychain-remotely-from-the-command-line
Previous: Robert Leach
Message 2 of 2 in “git credential-osxkeychain bug/feature?”
  1. Robert LeachJan 25, 2018
  2. Jeff KingJan 26, 2018

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.