...
- Log in to a persistent session and edit (or add if missing) the value of "max-cache-ttl" and "default-cache-ttl" in the file ~/.gnupg_$HOSTNAME/gpg-agent.conf to the expected time length ( in seconds). The original file looks as below
allow-preset-passphrase
default-cache-ttl 43200
max-cache-ttl 43200 - Kill the existing gpg-agent process via "gpgconf --kill gpg-agent" or "kill -9 gpg-agent".
- run mosrs-auth command to enter your password.
...