I now it's not a forum but I haven't got answer there: https://forum.xfce.org/viewtopic.php?pid=57720 Maybe, it's an unimplemented feature or a buggy behavior? My gpg-agent is started with 'enable-ssh-agent' option. And 'ssh' command uses GnuPG keys to login to hosts. But Thunar (SFTP) doesn't use them. How do I solve it? NB: Don't confuse GnuPG and SSH keys. This issue about the first.
Thunar uses gvfs to setup remote connections. So probably a gvfs bug (or missing feature) As well nautilus uses gvfs .. .could you please check if the bug as well occurs there ?
Does this work? export GVFS_DEBUG=1 GVFS_DEBUG_FUSE=1 killall gvfsd gio mount sftp://
This scenario *doesn't* use GnuPG keys: pkill -f gvfsd gio mount sftp://host But this *DOES*: pkill gvfsd /usr/libexec/gvfsd # in another terminal gio mount sftp://host ?! Thanks!
Then this is likely related to bug 13486.
(In reply to Theo Linkspfeifer from comment #4) > Then this is likely related to bug 13486. Well, maybe. But how do I use it? SSH_AUTH_SOCK is exported. My Gentoo uses OpenRC. Tried SSH_AUTH_SOCK="/run/user/1000/gnupg/S.gpg-agent.ssh" G_DBUS_DEBUG=all gio mount --detail sftp://mmr | grep -i -- 'ssh\|gpg\|gnupg\|gvfs' (and 'grep dbus', also) but see nothing special...
The problem is that SSH_AUTH_SOCK is exported/imported after the launch of gvfsd. If you check the environment variables of the gvfsd process, you will see that SSH_AUTH_SOCK is not set.
(In reply to Theo Linkspfeifer from comment #6) > The problem is that SSH_AUTH_SOCK is exported/imported after the launch of gvfsd. In this scenario? pkill -f gvfsd export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) gio mount sftp://host Why? Does gio starts gvfsd, doesn't it? (In reply to Theo Linkspfeifer from comment #6) > If you check the environment variables of the gvfsd process, you will see that SSH_AUTH_SOCK is not set. But yes, all of tr '\0' '\n' < /proc/<pid>/environ | grep SSH where <pid> is every from pgrep -f gvfsd output nothing. Why?
> In this scenario? That was meant for the initial launch of gvfsd (triggered by Thunar --daemon ?) on session start. > But yes, all of ... output nothing. Why? Bug 13486 addressed this issue, but maybe the fix is incomplete or something.
Oh, no... tr '\0' '\n' < /proc/<pid>/environ | grep SSH outputs correct values. Sorry, I don't know what might changed.
So, this is not a bug in the Thunar code. I suggest that we move it somewhere else or close it.
Well, GNOME Mailing Lists ignore me. Feel free to close.
(In reply to Alexander Kurakin from comment #11) > Well, GNOME Mailing Lists ignore me. > > Feel free to close. Ok, closing. You might want to take a try to report it here: https://gitlab.gnome.org/GNOME/gvfs/issues