libssh2 handshake error in 13.8 and above

Get help for specific problems
Posts: 1
Joined: 20 Mar 2025

weekendninja

Hi,
I have been successfully using an older version of FFS.
A few days back I decided that the time has come to update.
So I did update to the newest 14.2 ... and the problems started.
I am getting the following error when connecting via SFTP with the key file option on Windows 10 laptop:
Cannot find the following folders:

sftp://user@domain.com/some/path/here
___________________________________________

Cannot read file attributes of "sftp://user@domain.com/some/path/here".
LIBSSH2_ERROR_KEX_FAILURE: Unable to exchange encryption keys [libssh2_session_handshake]
So I reverted back to my old version (all problems gone) and started to upgrade one version at a time.
The last version that works without any problems is 13.7
Starting from 13.8 and above the error appears.
Looking at the Change Log for 13.8 in the Archive I don't see any item to which I can attribute the error.

Any ideas?
User avatar
Site Admin
Posts: 7348
Joined: 9 Dec 2007

Zenju

FFS 13.8 updated libssh2 to version 1.11.1. They routinely deprecate old algorithms. Perhaps the key exchange algorithm on your target server is obsolete?

libssh2 1.11.1 supports the following key exchange algorithms:
curve25519-sha256
curve25519-sha256@libssh.org
ecdh-sha2-nistp256
ecdh-sha2-nistp384
ecdh-sha2-nistp521
diffie-hellman-group-exchange-sha256
diffie-hellman-group16-sha512
diffie-hellman-group18-sha512
diffie-hellman-group14-sha256
diffie-hellman-group14-sha1
diffie-hellman-group1-sha1
diffie-hellman-group-exchange-sha1
Posts: 50
Joined: 14 Aug 2022

daviank

What program are you using as ssh server?