SSH Auth in GUI apps

I’m using my Nitrokey for SSH authentication with my GPG key stored on it.

This works perfectly fine in the terminal.
But I also want this to work in GUI applications like FileZilla (SFTP) oder SublimeMerge (GIT).

Does anyone know how to get this to work?

My guess is that the GUI application doesn’t know the necessary environment variables that I’ve set in .bashrc:

if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
   export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"

Hi @DomDemDun!

According to the Filezilla’s help, under Linux the SSH_AUTH_SOCK variable should be enough indeed. What’s the content of the variable? Could you try to start it from the terminal and see, if that would work? E.g.:

env SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) filezilla

Indeed it works if I start FileZilla from the terminal with only the filezilla command.

How could I modify the starter so that it works even if I don’t start it from the terminal?
There is a checkbox “Run in terminal” but this doesn’t work.

~$ printenv | grep SSH

I was sure that user’s .bashrc is executed globally on the GUI start. Maybe the GnuPG is not ready at that time? What OS/distro are you using?

Debian 10 with Xorg and GNOME.

I think this will help:

Could you try and let me know?