Author

Topic: A way to force GPG to forget your password (Read 105 times)

legendary
Activity: 1568
Merit: 6660
bitcoincleanup.com / bitmixlist.org
February 07, 2020, 05:11:17 AM
#1
I've been making GPG (v2.0.22) keys with gnome-keyring-daemon and the most frustrating thing I've had with it to date is that it remembers the password of keys you make. I didn't want it to remember passwords at all. Lazyweb said that killing gpg-agent accomplishes this but I do not think that killing the gpg-agent every time you want to do this leaves the system stable, what if you kill something else by mistake? I had success using this command to make GPG forget about any passwords you entered:

Code:
echo RELOADAGENT | gpg-connect-agent

This has to be done manually though. I have seen suggestions to add the following lines to ~/.gnupg/gpg-agent.conf to forget them automatically (after 1 second):

Quote
default-cache-ttl 1
max-cache-ttl 1

But those instructions were for GPG 2.1+ and I'm not sure if it works for older versions.
Jump to: