On 20.11.2025 3:37, Max Nikulin wrote:
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/[email protected]>
However applications, I am aware of, create sockets under /run/user.
Hi Max,
I will not dive into the intricacies of LXDE, as the error behavior I
had is caused by changes to the CIFS kernel module. Besides, start of
ssh-agent seems to be enabled at OS level, and would affect the whole
OS. Then, local sockets seems to be created on demand. I'm not going to
touch the ssh-agent handling in the OS.
I will put up the question to the samba-technical list.
ThanksĀ for your help tracking down the error.
Peter