How can I configure gpg-agent to run at system start-up?

Werner Koch wk at gnupg.org
Fri Nov 28 21:52:38 CET 2014


On Fri, 28 Nov 2014 19:26, kardan38 at gmail.com said:

> I want gpg-agent start automatically after every reboot, so I wrote a
> small

Just don't do that.

> init script to start gpg-agent. After reboot gpg-agent starts working,
> however when I run ssh command, I get *"Agent admitted failure to sign
> using the key"* error. (If I start agent manually, I don't get this error).
> How is different starting gpg-agent manually from starting it inside a bash
> script during system start-up?

ssh is special because it does not known about GnuPG.  In this case you
may simply do that

  gpgconf --launch gpg-agent

(for 2.1 only, for 2.0 you need to use gpg-connect-agent)

> How can I configure gpg-agent to run at system start-up?

Not at system startup but at login time (.bashrc in interactive mode)


Salam-Shalom,

   Werner

-- 
Die Gedanken sind frei.  Ausnahmen regelt ein Bundesgesetz.




More information about the Gnupg-users mailing list