Gpg: How to clear cached password in gpg-agent

From FVue
Jump to: navigation, search

Problem

Gpg-agent remembers the gpg password for some time. But for testing purposes I want to really enter the password. How can I clear the cached password from gpg-agent?

Environment

  • Kubuntu 17.04
  • gpg (GnuPG) 2.1.15

Solution

echo RELOADAGENT | gpg-connect-agent

See:

How can I clear my cached gpg password?
Ubuntu forum question, with solution