80
32
Using gpg from a console-based environment such as ssh sessions fails because the GTK pinentry dialog cannot be shown in a SSH session.
I tried unset DISPLAY
but it did not help. The GPG command line options do not include a switch for forcing the pinentry to console-mode.
Older GPG versions offered a text-based prompt that worked fine in SSH sessions but after the upgrade it just fails.
There is the --textmode
command line switch but apparently, it does something else.
What would be the proper and clean way of getting plain-text pin entry for remote sessions?
DISPLAY="" gpg2 ...
helped me, I also installed pinentry-curses + pinentry-tty beforehand, not sure if they are strictly necessary – ThorSummoner – 2018-05-10T21:45:50.940