How to use gpg2 from command line (i mean... X terminal) without the GUI asking for passphrase?


Change the option pinentry-program in ~/.gnupg/gpg-agent.conf to whatever (console) pinentry client you prefer, eg. pinentry-curses (install it if necessary).

pinentry-program /usr/bin/pinentry-curses

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.