问题
When decrypting I get following error:
$ eyaml decrypt -s 'ENC and the key goes on here'
.gnupg --quiet --no-secmem-warning --no-permission-warning --no-tty --yes --decrypt) failed with: gpg: Sorry, no terminal at all requested - can't get input
I have checked my keys, everything is in order. At this point I am out of options.
回答1:
If you configured Automatic Git commit signing with GPG on macOS and you see this error comment out no-tty
in ~/.gnupg/gpg.conf
as suggested by Fahl-Design.
This will also allow you to generate new GPG keys following the GitHub instructions for new keys.
回答2:
You need to remove the option --no-tty
--no-tty
Make sure that the TTY (terminal) is never used for any output. This option is needed in some cases because GnuPG sometimes prints warnings to the TTY even if --batch is used.
来源:https://stackoverflow.com/questions/38659198/gpg-sorry-no-terminal-at-all-requested-cant-get-input