Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@BH1SCW
Forked from cliffano/gpgcryptic.txt
Created April 29, 2022 09:37
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BH1SCW/975e5cd97b540ca6ab6a4b8ac4a22594 to your computer and use it in GitHub Desktop.
Save BH1SCW/975e5cd97b540ca6ab6a4b8ac4a22594 to your computer and use it in GitHub Desktop.
gpg cryptic errors
I started getting the error below after upgrading to gpg (GnuPG) 2.1.21 .
gpg: signing failed: Timeout
gpg: signing failed: Timeout
This was confusing at first, but the timeout was caused by gpg showing a password prompt that takes the full screen of the terminal, and after a period of time, it returned to the command line showing the timeout error.
I didn't notice the password prompt at first because I was working on multiple terminals and only saw the timeout error at the end.
Another error that I encountered earlier was:
gpg: signing failed: Inappropriate ioctl for device
gpg: signing failed: Inappropriate ioctl for device
This way caused by missing `GPG_TTY`, simply pass it inline `GPG_TTY=$(tty) foobar`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment