Using GPG on a remote shell

From Pterodactylus
Revision as of 07:24, 3 August 2018 by Bombe (talk | contribs) (Created page with "Sometimes you need to use <code>gpg</code> on a remote shell on a machine that is usually operated via a local desktop which in turn means that <code>gpg</code> is configured...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Sometimes you need to use gpg on a remote shell on a machine that is usually operated via a local desktop which in turn means that gpg is configured to use the graphical environment to ask for passphrases. That’s not so hot on a remote shell, though.

PINENTRY_USER_DATA="USE_CURSES=1" GPG_TTY=$(tty) gpg …