In ubuntu 18.04 it doesn't ask for the pin when I'm logged in via ssh without a DISPLAY= variable.
Tried adding "pinentry-program /usr/bin/pinentry-curses" to ~/.gnupg/gpg-agent.conf but it didn't help.
I had to remove pinentry-gnome3 to get gpg working when logged in via ssh.
In ubuntu 18.04 it doesn't ask for the pin when I'm logged in via ssh without a DISPLAY= variable.
Tried adding "pinentry-program /usr/bin/ pinentry- curses" to ~/.gnupg/ gpg-agent. conf but it didn't help.
I had to remove pinentry-gnome3 to get gpg working when logged in via ssh.