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