Hi,
I use Filezilla on both Windows and Fedora (a version of Linux). On Windows I have no problem using sftp to login to my webserver using a yubikey. The setup uses SFTP on port 22 with "Interactive" as the logon type. This method then prompts me for the Yubikey pin and then logs me in.
However, on Fedora (using the latest version from the repository as recommended, in this case 3.45.1) I am unable to use a Yubikey to login. I get the following error:
Error: Disconnected: No supported authentication methods available (server sent: publickey)
Error: Could not connect to server
This is with the same Filezilla setup as mentioned for windows, so if anyone has any idea what I could try that would be great (or maybe this feature doesn't work on Linux yet?).
Just for further info please note the following:
1) I can SSH and SFTP into my server using the yubikey from a terminal (commandline)
2) I can SFTP into the server from Filezilla using a key file with the same private key info as the yubikey has
One final piece of information, that may or may not help, is that before I can log in using SSH on the commandline I have to run the following 3 commands, or I will get the exact same error as mentioned above:
sudo killall gpg-agent
sudo killall ssh-agent
eval $( gpg-agent --daemon --enable-ssh-support )
If you need any further info let me know.
Thanks
thetestspecimen
Yubikey on Linux (Fedora)
Moderator: Project members
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-03-18 21:32
- First name: thetestspecimen
Re: Yubikey on Linux (Fedora)
Linux repository versions are third-party repackages and not supported here. Support is provided by the repository package distributor/maintainer.using the latest version from the repository as recommended, in this case 3.45.1
You would need to get the latest Linux version from here, re-test, and come back if it still won't budge.
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-03-18 21:32
- First name: thetestspecimen
Re: Yubikey on Linux (Fedora)
Looks like your default SSH agent isn't loaded or configured correctly. Try starting FileZilla from the terminal after executing those commands.thetestspecimen wrote: ↑2020-03-18 21:45One final piece of information, that may or may not help, is that before I can log in using SSH on the commandline I have to run the following 3 commands, or I will get the exact same error as mentioned above:
sudo killall gpg-agent
sudo killall ssh-agent
eval $( gpg-agent --daemon --enable-ssh-support )
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-03-18 21:32
- First name: thetestspecimen
-
- 500 Command not understood
- Posts: 4
- Joined: 2020-03-18 21:32
- First name: thetestspecimen
Re: Yubikey on Linux (Fedora)
OK so botg nailed it. Greatly appreciated!
For anyone else who finds this thread with a similar problem here is what to do (I am of course assuming you have working ssh in a terminal to begin with, and filezilla installed):
Run:
Filezilla will then open.
The settings you need in Site Manager (File-->Site Manager) are:
Protocol: SFTP - SSH File Transfer Protocol
Host: <Your host name> (e.g. filezilla.org)
Port: Can usually be left blank and will default to 22 if your port is different obviously change it
Logon Type: Interactive
User: <Your username>
That should allow you to connect. If you have a pin set on the yubikey then you will get a popup request for it, otherwise it will just connect.
For anyone else who finds this thread with a similar problem here is what to do (I am of course assuming you have working ssh in a terminal to begin with, and filezilla installed):
Run:
Code: Select all
sudo killall gpg-agent
sudo killall ssh-agent
eval $( gpg-agent --daemon --enable-ssh-support )
filezilla
The settings you need in Site Manager (File-->Site Manager) are:
Protocol: SFTP - SSH File Transfer Protocol
Host: <Your host name> (e.g. filezilla.org)
Port: Can usually be left blank and will default to 22 if your port is different obviously change it
Logon Type: Interactive
User: <Your username>
That should allow you to connect. If you have a pin set on the yubikey then you will get a popup request for it, otherwise it will just connect.