<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Fri, Feb 2, 2018 at 12:42 AM, Smith, Cathy <span dir="ltr"><<a href="mailto:Cathy.Smith@pnnl.gov" target="_blank">Cathy.Smith@pnnl.gov</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">My experience is that gpg 2.2 seems to be more suited for the desktop environment than for a server environment or a remotely administered site.  We've been using gpg 1.4 (yes I know it is old) in batch mode for many years in a Red Hat environment.  Our server environment has grown increasingly restricted.  The gpg 2.2 windows pop up prompt is a real pain.  Another group that I used to do work for, just quit using gpg because they could not find a way around the pop up prompt in remote, batch installations.<br></blockquote><div><br></div><div>There is always a solution or workaround, but it is a pain even for experts to find it out.</div><div>It was a pain for me too (although I am not an expert). And I would not remember it</div><div>if it was not for this piece of script:</div><div><a href="https://github.com/dashohoxha/egpg/blob/gnupg-2.1/tests/setup.sh#L63-L69">https://github.com/dashohoxha/egpg/blob/gnupg-2.1/tests/setup.sh#L63-L69</a></div><div><br></div><div>So, the solution is to edit $GNUPGHOME/gpg-agent.conf and to change 'pinentry-program'</div><div>Then restart gpg-agent. You can set it to '/usr/bin/pinentry-tty' like this:</div><div><a href="https://github.com/dashohoxha/egpg/blob/gnupg-2.1/src/cmd/init.sh#L25">https://github.com/dashohoxha/egpg/blob/gnupg-2.1/src/cmd/init.sh#L25</a><br></div><div>In Debian/Ubuntu you have to install the package 'pinentry-tty'.</div><div><br></div><div>I have tried these on gpg2.1, but it should be the same for gpg2.</div><div><br></div><div>Regards,</div><div>Dashamir</div></div></div></div>