GnuPG and SSH_AUTH_SOCK value

Matthias Apitz guru at unixarea.de
Fri Jun 21 13:20:17 CEST 2019


Hello,

I'm using GnuPG together with an OpenPGP card among other things for ssh
access. The SSH_AUTH_SOCK value is to be set like this

# set SSH_AUTH_SOCK
#
unset SSH_AGENT_PID
unset SSH_AUTH_SOCK
SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)";
export SSH_AUTH_SOCK

What I do not understand is, why this value without the KDE5 environment
is

$ gpgconf --list-dirs agent-ssh-socket
/home/guru/.gnupg-ccid/S.gpg-agent.ssh

and after start of Xorg and KDE5 it is:

$ gpgconf --list-dirs agent-ssh-socket
/var/run/user/1001/gnupg/d.m4rfaasqebhjmgto9ddm6m7y/S.gpg-agent.ssh

Why is this change/difference?

	matthias

-- 
Matthias Apitz, ✉ guru at unixarea.de, http://www.unixarea.de/ +49-176-38902045
Public GnuPG key: http://www.unixarea.de/key.pub
May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <https://lists.gnupg.org/pipermail/gnupg-users/attachments/20190621/fb37887c/attachment.sig>


More information about the Gnupg-users mailing list