FS#46398 - [dbus] gvfs does not use ssh-agent anymore (since 1.10.0-3)
Attached to Project:
Arch Linux
Opened by freswa (frederik) - Tuesday, 22 September 2015, 13:06 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 20 September 2023, 02:07 GMT
Opened by freswa (frederik) - Tuesday, 22 September 2015, 13:06 GMT
Last edited by Toolybird (Toolybird) - Wednesday, 20 September 2023, 02:07 GMT
|
Details
Description:
On 1.10.0-2 gvfsd used ssh-agent to get ssh-keys for sftp connection. Since 1.10.0-3 I need to restart gvfsd in terminal to get it working. Gvfsd normally is started via dbus service file. So I think this is related to the latest update of dbus and the environment variables that ssh-agent sets at startup. dbus 1.10.0-3 libdbus 1.10.0-3 Steps to reproduce: 1. startup system 2. load some ssh-keys into ssh-agent 3. try to access a sftp server via gvfs (e.g. via thunar) |
This task depends upon
Closed by Toolybird (Toolybird)
Wednesday, 20 September 2023, 02:07 GMT
Reason for closing: Upstream
Additional comments about closing: Definitely not an Arch packaging issue. It needs to be fixed upstream...but it's unclear exactly *where* upstream.
Wednesday, 20 September 2023, 02:07 GMT
Reason for closing: Upstream
Additional comments about closing: Definitely not an Arch packaging issue. It needs to be fixed upstream...but it's unclear exactly *where* upstream.
FS#46369?Before:
- run command
- kill gvfsd
- start thunar (which starts gvfsd again)
-> does not work
Now:
- run command
- kill gvfsd
- start thunar (which starts gvfsd again)
-> works
The problem seems to be the initialization of ssh-agent.
I need to start ssh-agent in my ~/.xprofile while gvfsd is started by dbus via /usr/share/dbus-1/services/gvfs-daemon.service...
~$ echo "dbus-update-activation-environment --systemd SSH_AUTH_SOCK" > ~/.xprofile
does activate the workaround here
Running XFCE latest, no ssh-agent working for Thunar or Caja. 'ssh-add -L' clearly shows right key loaded, same key works on a different OS (Debian). ssh-agent is started by XFCE.
Possibly had this bug in Fedora as well months ago but can't install it to check.
(Could be a variant of this bug, but same result)
Try:
~$ dbus-update-activation-environment --systemd SSH_AUTH_SOCK
- close thunar
~$ pkill gvfs
- start thunar
Does this help?
I've also filed a report upstream (also with the patch):
https://bugzilla.xfce.org/show_bug.cgi?id=13486
https://git.xfce.org/xfce/xfce4-session/commit?id=2cf63e66c0285aaeee76155f463c85d04da6addc
New bug at xfce:
https://gitlab.xfce.org/xfce/xfce4-session/-/issues/165
Edit: Alternatively, I suppose xfce could be starting the ssh-agent too late.