gpg: signing failed: Inappropriate ioctl for device Error Message on Linux

Werner Koch wk at
Fri Sep 30 16:13:36 CEST 2016

On Fri, 30 Sep 2016 14:37, justus at said:

> fallback pinentry failed to open the terminal due to the fact that stdin
> of the gpg process is not connected to a terminal.  The latter can
> happen for example when gpg is used in a pipe.

That does not matter.  The pinentry opens the tty on its own.  To do
this it needs to know the tty.  Fortunately gpg knows the tty or can
take it from the GPG_TTY envvar and passes the name of the tty device
via gpg-agent up to pinentry.



Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 162 bytes
Desc: not available
URL: </pipermail/attachments/20160930/09c8cc71/attachment.sig>

More information about the Gnupg-users mailing list