I use Gnome 3.36.3 (Ubuntu 20.04.1) with GnuPG 2.2.19 as SSH agent.
I tell OpenSSH where to find the GnuPG SSH agent socket in my
~/.profile
file:
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
This works fine in terminal windows. Whenever I connect to a remote SSH server, I get prompted for my PIN.
But when I try to connect to a remote SFTP server with Nautilus, I get errors, either an message like "not authorized!" or I am asked for username and password (which of course won't work as I use keys only).
As a manual workaround I found out, that after a gvfsd
and a complaining beep from Nautilus, SFTP connections will work as expected.
So apparently **gvfs** is not aware of my GnuPG SSH agent after login. but will be later, when killed and restarted.
What do I have to do, to make **gvfs** aware of my GnuPG SSH agent, wwithout killing manually first?
Asked by awolf
(46 rep)
Oct 26, 2020, 12:05 AM
Last activity: Oct 28, 2020, 06:09 PM
Last activity: Oct 28, 2020, 06:09 PM