From: Phillip Wood <phillip.wood123@gmail.com>
To: Justin Su <injustsu@gmail.com>, git@vger.kernel.org
Subject: Re: Commit signing with SSH key uses SSH_AUTH_SOCK but ignores IdentityAgent
Date: Fri, 13 Sep 2024 16:05:13 +0100 [thread overview]
Message-ID: <a25f71ad-093f-4e8d-97ef-503bfb9926d2@gmail.com> (raw)
In-Reply-To: <CAB=S_8JhN=WSuYRMWbGz7gZMRX9dSb3k8rJZ7zrxkbHKOqfzww@mail.gmail.com>
Hi Justin
On 13/09/2024 10:58, Justin Su wrote:
> I use Secretive (https://github.com/maxgoedjen/secretive) to store my
> SSH keys on macOS. I've configured my ssh_config to use it as the
> IdentityAgent, and Git can push and pull just fine.
>
> However, it seems that Git ignores IdentityAgent when signing commits,
> resulting in the following error message:
Git just runs "ssh -Y". I can reproduce this on linux - I suspect the
problem is that ssh does not read the IdentityAgent config when signing
even if it is outside a Host/Match in the config file.
Best Wishes
Phillip
> error: No private key found for public key "foo.pub"?
> fatal: failed to write commit object
>
> I've worked around this by setting SSH_AUTH_SOCK, but this doesn't
> feel correct to me. Is this intended behaviour?
>
> Thanks,
> Justin
>
next prev parent reply other threads:[~2024-09-13 15:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-13 9:58 Commit signing with SSH key uses SSH_AUTH_SOCK but ignores IdentityAgent Justin Su
2024-09-13 15:05 ` Phillip Wood [this message]
2024-09-14 16:08 ` Justin Su
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a25f71ad-093f-4e8d-97ef-503bfb9926d2@gmail.com \
--to=phillip.wood123@gmail.com \
--cc=git@vger.kernel.org \
--cc=injustsu@gmail.com \
--cc=phillip.wood@dunelm.org.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.