PLA Tech Blog   

Configure a Command Line GPG PIN Prompt

Here is how you tell the GPG agent to use the command line instead of the GUI. I am using Ubuntu 18.04 MATE.

Install the PIN Entry TTY package.

sudo apt install pinentry-tty

Edit the existing or create a new PGP agent configuration file with a text editor. I use nano.

nano ~/.gnupgp/gpg-agent.conf

Add this line:

pinentry-program /usr/bin/pinentry-tty

Save the configuration file and reload the configuration:

gpg-connect-agent reloadagent /bye

You should receive a prompt on the command line instead of the GUI dialog seen below.

Passphrase GUI

Regurgitated from

Written on May 27, 2018.