I'm having troubles trying to get gpg-agent to cache my passphrase for a long time.

I'm using FreeBSD, GnuPG 2.1.11

I've created a .gnupg/gpg-agent.conf file with the following

default-cache-ttl 34560000
max-cache-ttl 34560000

It doesn't seem to affect how long the passphrases are cached for, They still expire, I'm not sure how long, but roughly 15 mins.

Is there something else I need to do? The FreeBSD server isn't being reset or anything so I don't think the gpg-agent is resetting.

  • just to be sure; you've restarted the gpg-agent? also, the .gnup_h_/gpg-agent.conf is a typo here, but not actually on your machine, right? – madeddie Aug 11 '16 at 0:16
  • correct, i've restarted the gpg-agent. And yes, that was a typo. – Marc Lester Aug 11 '16 at 12:49
  • ok, i'm out. i changed the timeouts too and it works fine, I was first thinking it might be the actual length of your timeout, but i see other examples using it, so... at a loss. – madeddie Aug 11 '16 at 12:53
  • Reading this is a server -- have you configured gpg-agent for the right user account? – Jens Erat Aug 12 '16 at 17:46
  • found it was the length of the timeout. There might be a limit, but I couldn't find any doc on it. – Marc Lester Oct 21 '16 at 16:00

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.