Page 1 of 1

AndFTP cannot negotiate key type

Posted: Mon Nov 07, 2022 5:48 pm
by amganq
Hello,

I am an Android 12 user and running AndFTP which is a great tool to connect to (almost) any Linux Box. I love it ! However, I ran into a problem with it...

I have a trouble running AndFTP v6.3 on Android 12 connecting to my Linux Server at Home.

I've recently upgraded my Linux Server to Ubuntu 22.04.1 (OpenSSH_8.9p1 Ubuntu-3, OpenSSL 3.0.2) and AndFTP does not connect anymore using the PubKey method.

auth.log on the server throws the following:

Code: Select all

sshd[249451]: userauth_pubkey: key type ssh-rsa not in PubkeyAcceptedAlgorithms [preauth]
My SSH Key is OK (it spits out a SHA256 fingerprint), also I use this key with JuiceSSH (on Android 12) and I use this key on my laptop so the Key is OK.
All of the above use another more sophisticated mechanism, not just plain "ssh-rsa".
The only one that seems to have a trouble authenticating is AndFTP.

From what I understand, OpenSSH has put some security restrictions in place in order not to allow weak algorithms to be used.

I assume AndFTP needs a key upgrade procedure or something like that...

If anyone can help, please... otherwise, I must change AndFTP to other SFTP Client.

Re: AndFTP cannot negotiate key type

Posted: Wed Nov 09, 2022 8:03 am
by support
Hi,

In your AndFTP configuration, Advanced tab => Expert settings, there is a SSH provider option, could you try all (one by one, don't forget to click save each time) with your key?

Re: AndFTP cannot negotiate key type

Posted: Thu Aug 10, 2023 7:23 pm
by HypromanGT
I just ran into this same issue trying to connect from an Android 13 phone to an Ubuntu 22.04.2 server running OpenSSH 8.9p1.

The solution was indeed to switch the SSH Provider in the AndFTP connection advanced settings from Default to Secure (includes ED25519).

Re: AndFTP cannot negotiate key type

Posted: Mon Apr 01, 2024 6:15 pm
by erikthegreat
Hi!

Similar issue here. Newer server with newer ssh version, sshd logs
no matching host key type found. Their offer: ssh-rsa,ssh-dss [preauth]
Neither option for the SSH provider option helps. Enabeling now legacy options in the sshd config makes the connection work, but this is not a good solution. See eg

https://www.gentoo.org/support/news-ite ... -sha1.html

Can we expect an AndFTP that supports newer, safer, non-sha1 based, key negotiations for sftp?

Re: AndFTP cannot negotiate key type

Posted: Sun Aug 10, 2025 2:48 pm
by support
Please upgrade to AndFTP 6.7