saturneric / GpgFrontend

A free, open-source, robust yet user-friendly, compact and cross-platform tool for OpenPGP encryption. It stands out as an exceptional GUI frontend for the modern GnuPG (gpg).
https://gpgfrontend.bktus.com
GNU General Public License v3.0
495 stars 48 forks source link

ERROR: Inappropriate ioctl for device when using yubikey #144

Closed creamlike1024 closed 6 months ago

creamlike1024 commented 6 months ago
截屏2024-03-25 17 54 49

System: macOS 14.4 (x86) Version: 2.1.2 (Installed through brew)

Using gpg from terminal with yubikey has no problem.

Should I need to make certain settings?

saturneric commented 6 months ago

在GnuPG控制面板中勾选”用Pinentry...“那一项试试。 然后,如果还是不行的话,可以结合下面这个stack看看: https://stackoverflow.com/questions/51504367/gpg-agent-forwarding-inappropriate-ioctl-for-device

creamlike1024 commented 6 months ago
brew install pinentry-mac
echo "pinentry-program $(brew --prefix)/bin/pinentry-mac" > ~/.gnupg/gpg-agent.conf

restart system