GnuPGv2 & 'pinentry' on Linux w/ remote access

Sander Smeenk ssmeenk at
Wed Nov 8 10:50:45 CET 2017

Quoting Ryan Beethe (ryan at

> Well... it happens that when I copy your script to my archlinux
> machine, everything works fine.

Are you sure your key wasn't already unlocked in the gpg-agent?

> It also happens that when I copy your script into my ubuntu machine, I
> had to change both references of `gpg` to `gpg2`, [ .. ]

Yes, thanks for that hint but it is not my case.
I made the deliberate step and now only use GnuPG 2.x

> Personally, I use a plugin ( and
> I have never had problems.  Then in my ~/.vimrc, I just had to set:
>     let GPGUsePipes=1
>     let GPGDefaultRecipients=[' at']

Wow! Quite some code for decrypting a file!
I'll give it a shot after i learn how to use that beast.

| It’s hard to explain puns to kleptomaniacs
| because they always take things literally.
| 4096R/20CC6CD2 - 6D40 1A20 B9AA 87D4 84C7  FBD6 F3A9 9442 20CC 6CD2

More information about the Gnupg-users mailing list