gpg 2.1 gpg-agent over ssh

Werner Koch wk at gnupg.org
Sat Mar 28 12:21:44 CET 2015


On Fri, 27 Mar 2015 11:38, infinity0 at pwned.gg said:

> What is actually happening is that the gpg-agent it's connecting to,
> is running a pinentry that's associated with the display on the
> desktop session the *gpg-agent* is attached to, rather than the ssh
> client, and there's no way for the ssh user to reach this.

Sure.  If you want to switch your active X-server you need to tell it
gpg-agent:

  gpg-connect-agent updatestartuptty /bye


> $ pgrep -a gpg-agent
> 17902 gpg-agent --homedir /home/infinity0/.gnupg --use-standard-socket --daemon
> $ kill -HUP 17902 # flush all secret keys

  gpgconf --reload gpg-agent

is easier ;-)

> But physically going back to the desktop session doesn't show a pinentry popup, for some reason.

It shows up there until it times out.


Salam-Shalom,

   Werner

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




More information about the Gnupg-devel mailing list