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

git credential-osxkeychain bug/feature?

From
RLRobert Leach <hepcat72@me.com>
Date
Jan 25, 2018, 17:16 UTC
Message-ID
<7445BC5F-F041-4E7D-8CB5-9513EEFF2C8C@me.com>
Hi,
I wanted to submit an issue regarding the credential-osxkeychain interface functionality.  I don't know whether it's a bug or a feature request.  Maybe it's even impossible to address? - I don't know, but here's my issue.  Let me know if fixing/implementing this is a bad idea or if it's an issue relating to something wrong on my system and not an issue with git itself.
I have a git repo in a dropbox directory (not sure if that's relevant - just giving full disclosure).  I have set up git to not ask me for my password by using the credential-osxkeychain feature, and it works great... unless I'm connected via ssh to the machine that has a copy of my Dropbox on it.  Various git commands interrogate me for my login instead of using the credentials stored in the KA database on that remote machine, e.g.:

git remote show origin Username for 'https://github.com': ^C

When I'm sitting at that machine, I do not get asked for my login credentials.
It's a minor issue, and kind of silly TBH.  I can always just work on my repo locally and synch, but if I'm working on a project that processes a large dataset, it's faster to edit the project on the machine with the data I'm testing it with.  I could VNC in or just synch after each change, which works around the issue, but it's nicer to just do everything on one ssh terminal session.
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?

Thanks, Rob

Next: Jeff King
Message 1 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.