Is it possible to keep password cached for a whole session?

Sudhir Khanger sudhir at
Wed Jul 9 12:46:42 CEST 2014

I have been told that gpg-agent keeps password cached for the session
so that I don't have to constantly enter password to unlock gpg key.
My personal experience and a little research says there is nothing
like that being done automatically by upstream. I was wondering if
anyone could shed light on it?

I could get gpg-agent to keep the keys unlocked by adding following lines.

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

I am trying to track the following bug

Sudhir Khanger.

More information about the Gnupg-users mailing list