How to avoid Passphrase prompt

Smith, Cathy Cathy.Smith at
Fri Feb 2 00:42:55 CET 2018

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.


Cathy L. Smith
IT Engineer

Pacific Northwest National Laboratory
Operated by Battelle for the 
U.S. Department of Energy

Phone: 509.375.2687
Fax:       509.375.4399
Email: cathy.smith at

-----Original Message-----
From: Gnupg-users [mailto:gnupg-users-bounces at] On Behalf Of Aneesh Varghese
Sent: Wednesday, January 31, 2018 8:03 PM
To: Peter Lebbing <peter at>; gnupg-users at
Subject: Re: How to avoid Passphrase prompt

Hi Peter,
We need passphrase, but passphrase should be enter via code not from windows popup prompt.

Thanks & Regards

Aneesh Varghese

From: Peter Lebbing <peter at>
Sent: Wednesday, January 31, 2018 6:42 PM
To: Aneesh Varghese; gnupg-users at
Subject: Re: How to avoid Passphrase prompt

On 31/01/18 13:19, Aneesh Varghese wrote:
> is it possible to avoid the windows popup for entering the passphrase?

The simplest way to avoid the popup is to remove the passphrase from the private key.

The private key is stored on your hard disk. If there is no passphrase on the private key, anybody with access to your hard disk can decrypt files. They can also do anything else with your key.

So you need to make sure that only you have access to the hard disk.

Is this acceptable?



I use the GNU Privacy Guard (GnuPG) in combination with Enigmail.
You can send me encrypted mail if you want some privacy.
My key is available at <>

Gnupg-users mailing list
Gnupg-users at

More information about the Gnupg-users mailing list