On 19/11/2025 13:16, Peter Milesson wrote:
I have no idea if the sockets are needed for LXDE, or not. When I log
on with SSH from a remote client, sockets are not created under
~/.ssh/ agent. There are however, a bunch of sockets created under
/run/user/ <uid> in both cases.
I have realized that /etc/X11/Xsession.d/90x11-common_ssh-agent
creates a socket in /tmp, not in ~/.ssh (at least in bookworm).
I forgot that LXDE may have its own GUI component to display password
prompt when the user initiate a ssh connection directly or by e.g.
git. I am leaving it up to you to investigate whether ~/.ssh/agent is
created by LXDE out of the box or it is customization of you as an
administrator or of your users. I hope, it is possible to adjust
configuration to create the socket in some other directory. In
addition you need to keep SSH_AUTH_SOCK environment pointing to the
actual path.
I still think that error due to ssh-agent should not be a fatal error
for whole session. A notification dialog is enough.
There was a recent thread on changes after trixie release that affects
at least XFCE:
Re: Lost graphical ssh-askpass with Xfce4 in forky. Tue, 30 Sep 2025
09:45:46 +0700.
<https://lists.debian.org/msgid-search/10bfg8u$569$1@ciao.gmane.io>
However applications, I am aware of, create sockets under /run/user.