Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've tried:

  • the SIGHUP method --> no succes
  • the cache timeout in gpg-agent.conf --> it seems that this file is not read, althougt I have the 'use-agent' line in gpg.conf

What should I do ?

share|improve this question
    
The default GPG agent in Ubuntu is Seahorse. AFAIK, Seahorse does not read any gpg-agent.conf file. So I want to ask: what is your GPG agent? Are you sure it is confgured properly? Where are you sending SIGHUP? – Andrea Corbellini Sep 24 '13 at 21:43
    
@AndreaCorbellini I'm refering to the password agent which is gpg-agent and I don't know if it is properly configured because I don't know what properly configured exactly means for gpg-agent... Finally I'm sending SIGHUP using "pkill -SIGHUP gpg-agent" – Thomas Produit Sep 24 '13 at 21:51
1  
The suggested answer below using gpg-connect-agent does indeed seem to work for seahorse (at least for me on 14.04), not just gpg-agent. This means that without disabling gnome-keyring you should be able to use it out of the box. – Greg Feb 5 '15 at 13:06
up vote 7 down vote accepted

Let me begin by saying I had the exact same issue...


Your GPG secrets are probably being handled by the Gnome Keyring, even if gpg-agent is running. This answer provides some details on the available options for it.

Another way is to disable the GPG component of the Gnome Keyring, so that gpg-agent is used:

  • You can do this by removing (or renaming to something other than *.desktop) the file /etc/xdg/autostart/gnome-keyring-gpg.desktop.
  • It's possible you already have the necessary settings for gpg-agent to autostart. At least for me, running Ubuntu 13.04, that's true. However, if you need to, refer this post for some information on how to configure it.
  • After logging off and on again, just gpg-agent should be running, and it does respond both to settings in ~/.gnupg/gpg-agent.conf and to SIGHUP signals.
  • On a final note, it may be wise to also disable the SSH component of Gnome Keyring, since:
    • You probably also don't want your SSH keys unlocked for the whole session, and might want to use/configure ssh-agent or gpg-agent
    • It's possible that your configuration for gpg-agent autostart already includes SSH support (the default one in Ubuntu 13.04 does)
share|improve this answer

for those really using gpg-agent, you can forget passphrases with:

echo RELOADAGENT | gpg-connect-agent
share|improve this answer
2  
Thank you! That works just fine for gnome-keyring-daemon too (on 14.04) - I've looked everywhere to find a simple "forget"! – Greg Feb 5 '15 at 13:03
    
I get ERR 103 unknown command. – zondo Nov 13 '16 at 13:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.