Re: Commit signing with SSH key uses SSH_AUTH_SOCK but ignores IdentityAgent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux