Re: Commit signing and pinentry problems
On Wed, Nov 20, 2019 at 7:41 AM Jeffrey Walton <noloader@gmail.com> wrote:
Show 26 quoted lines
>
> I'm having an annoying problem that I can't figure out. I hope Git has
> a setting to fix it.
>
> I have a desktop workstation where I sit at the keyboard about 1/3 of
> the time. Git signing works as expected. About 2/3 of the time I SSH
> into the machine. Git signing does not work when SSH'd in.
>
> When Git signing fails over SSH an error looks like:
>
> $ git commit -S log.h -m "Remove unneeded header"
> error: gpg failed to sign the data
> fatal: failed to write commit object
>
> I just noticed this today (but it makes sense)...
>
> - Go to desktop workstation, log in
> - Go to remote machine, log in
> - Sign at remote machine over SSH
> - Desktop workstation will open GUI password prompt
> - Remote machine sign operation will hang until GUI prompt times-out
>
> The problem was reported to Ubuntu but no activity:
> https://bugs.launchpad.net/ubuntu/+source/pinentry/+bug/1852696 .
>
> Does anyone know how to use Git to work around pinentry brain-dead-ness?
This fellow's answer fixed this problem: https://stackoverflow.com/a/53641081
Jeff