Closed ShahradR closed 4 years ago
When trying to sign the word "test"
directly with gpg2
returns the following error message:
$ echo "test" | gpg2 --clearsign
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
test
gpg: signing failed: Inappropriate ioctl for device
gpg: [stdin]: clearsign failed: Inappropriate ioctl for device
It seems that the problem would be related to gpg2
, rather than git
itself.
The issue was caused by GPG not knowing which TTY to use for input/output. Exporting the GPG_TTY
environment variable resolved the issue!
Note that this requires that pinentry-tty
be installed.
When trying to sign previous commits using GPG while in an interactive rebase, the following error message is returned: