Constantly restarting gpg-agent

Farhan Khan farhan at farhan.codes
Mon Aug 26 01:26:00 CEST 2019


Hi all,

I use gnupg to sign my git commits, but after a few hours of use I have to restart gpg-agent. Before
doing so, what I presume is gpg-agent asks me to re-enter my password on a random terminal (but it
seems to drop characters and never works). As a result, the git commit fails. I have to kill
gpg-agent and restart it as "gpg-agent --daemon", which then works.

I would like to:
A. The calling terminal should be where I have to re-enter my password, not seemingly a random
terminal.
B. Enter my password only once.

This is a headless remote system I ssh into running FreeBSD 12.0. Please find my configuration
below.

-----BEGIN TERMINAL MESSAGE-----
[farhan at dev ~]$ cat ~/.gnupg/gpg.conf
# File re-created by pEp
# See backup in '/home/farhan/.gnupg/gpg.conf.0.pep.bkp'

personal-digest-preferences SHA512
cert-digest-algo SHA512
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP
Uncompressed
keyserver hkp://keys.gnupg.net
no-emit-version
no-comments
personal-cipher-preferences AES AES256 AES192 CAST5
ignore-time-conflict
allow-freeform-uid
no-secmem-warning

[farhan at dev ~]$ cat ~/.gnupg/gpg-agent.conf
# File re-created by pEp
# See backup in '/home/farhan/.gnupg/gpg-agent.conf.0.pep.bkp'

enable-ssh-support
default-cache-ttl 300
max-cache-ttl 1200
-----END TERMINAL MESSAGE-----

Thanks,

---
Farhan Khan
PGP Fingerprint: 1312 89CE 663E 1EB2 179C 1C83 C41D 2281 F8DA C0DE



More information about the Gnupg-users mailing list