Bug 350596 - crypt_set_algorithms2 doesn't handle Ciphers as a list and fails connection prematurely
Summary: crypt_set_algorithms2 doesn't handle Ciphers as a list and fails connection p...
Status: RESOLVED UPSTREAM
Alias: None
Product: kio-extras
Classification: Frameworks and Libraries
Component: SFTP (other bugs)
Version First Reported In: 18.04.3
Platform: Kubuntu Linux
: NOR major
Target Milestone: ---
Assignee: Andreas Schneider
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-24 20:31 UTC by admin
Modified: 2018-09-24 12:26 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description admin 2015-07-24 20:31:01 UTC
When I set Ciphers in ~/.ssh/config or /etc/ssh/ssh_config to something like this:

Ciphers chacha20-poly1305@openssh.com,aes256-gcm@openssh.com,aes128-gcm@openssh.com,aes256-ctr,aes192-ctr,aes128-ctr

Dolphin fails with:
crypt_set_algorithms2: no crypto algorithm function found for chacha20-poly1305@openssh.com
then as I remove algorithms from the beginning, it fails like so:
crypt_set_algorithms2: no crypto algorithm function found for aes256-gcm@openssh.com
crypt_set_algorithms2: no crypto algorithm function found for aes128-gcm@openssh.com

Until it succeeds when no @openssh.com ciphers are at the beginning of the list, it works if they are second or later too, which seems to point to KIO picking the first out of the list and using it instead of picking the first that it can use, which is correct behavior.

I found an email from earlier this year about the same problem:
https://lists.fedoraproject.org/pipermail/kde/2015-January/014171.html

Also now that I'm done typing this up, the system mentions this as a possible duplicate:
https://bugs.kde.org/show_bug.cgi?id=226033
It's not, but it could mean this bug is in libssh instead of KIO, but I don't know?

If someone can point me in the direction of the relevant code I may be able to come up with a patch.
Comment 1 Jeffrey 2015-07-24 20:33:10 UTC
I have this issue as well when using Dolphin and KIO to connect to remote machines.
Comment 2 Andreas Schneider 2015-08-03 18:26:07 UTC
Please open a bug upstream https://red.libssh.org/ You should post your config file ...
Comment 3 Robert G. Siebeck 2016-01-09 12:53:59 UTC
I had the same problem but could resolve it by updating libssh to version 0.7.1 (from 0.6.5).
Comment 4 kde 2018-03-09 20:27:23 UTC
I'm still having this issue as well.

openSUSE Tumbleweed 20180307
Qt 5.10.0
Plasma 5.12.2
Frameworks 5.43.0
Dolphin 17.12.2

libssh 0.7.5-4.2
Comment 5 Andreas Schneider 2018-09-24 12:26:30 UTC
Fixed with libssh 0.8

https://www.libssh.org/2018/09/21/libssh-0-8-3/