sftpplug : unable to exchange encryption keys

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sobakos
Junior Member
Junior Member
Posts: 3
Joined: 2016-01-25, 09:57 UTC

sftpplug : unable to exchange encryption keys

Post by *sobakos »

Hello,

Our SSH server was a subject to security enforcement, so some insecure algorithms for ciphers were removed. As a consequence, sftpplug is not working anymore. It shows the following message:

Error: Could not start SSH session:
Unable to exchange encryption keys.

Here is the list of used algorithms from our sshd_config file:


KexAlgorithms curve25519-sha256@libssh_org,ecdh-sha2-nistp521,ecdh-sha2-nistp384,ecdh-sha2-nistp256,diffie-hellman-group-exchange-sha256

Ciphers chacha20-poly1305@openssh_com,aes256-gcm@openssh_com,aes128-gcm@openssh_com,aes256-ctr,aes192-ctr,aes128-ctr

MACs hmac-sha2-512-etm@openssh_com,hmac-sha2-256-etm@openssh_com,umac-128-etm@openssh_com,hmac-sha2-512,hmac-sha2-256,umac-128@openssh_com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

My SFTP plugin doesn't handle this by itself, it uses the OpenSSH dlls. Apparently OpenSSH doesn't work with just these codecs. The problem seems to be the KexAlgorithms. The Ciphers and MACs both have @openssh_com codecs, the KexAlgorithms doesn't.

According to this post, SHA1 is a required part of the FIPS-186-2 digital signature standard used by SSH.
Author of Total Commander
https://www.ghisler.com
sobakos
Junior Member
Junior Member
Posts: 3
Joined: 2016-01-25, 09:57 UTC

Post by *sobakos »

Dear Christian,

Thank you for the answer (and also for your great Total Commander).

According to the list of implemented specifications by OpenSSH and to the Mozilla wiki recent OpenSSH supports all the KexAlgorithms listed.

I tried to replace the CURL dlls by newer versions of the libraries but still got no result.

As a workaround, it is possible to use sftp4tc plugin which works just fine.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50918
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Maybe it's necessary to call some OpenSSH functions to activate these codecs? But if OpenSSH implements the standards very strictly, it may not supports these codecs at all...
Author of Total Commander
https://www.ghisler.com
Post Reply