From 8c9dbdb0c1c352997abd1aa5d34179ef9e7aba2f Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Thu, 4 Jul 2024 19:35:53 +0200 Subject: [PATCH] Remove SSH flag to enable deprecated algorithms and keys New OpenSSH versions don't ship them, causing an error: Bad key types '+ssh-dss,ssh-rsa' We will add compatibility with newer keys on the Android side soon, as part of this year's GSOC project. (cherry picked from commit 4f3a896833184520c15cfca280161c99f2d16887) --- plugins/sftp/mounter.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/sftp/mounter.cpp b/plugins/sftp/mounter.cpp index 29e94f3b5..222656a93 100644 --- a/plugins/sftp/mounter.cpp +++ b/plugins/sftp/mounter.cpp @@ -122,8 +122,6 @@ void Mounter::onPacketReceived(const NetworkPacket &np) << QStringLiteral("-o") << QStringLiteral("IdentityFile=") + KdeConnectConfig::instance().privateKeyPath() << QStringLiteral("-o") << QStringLiteral("StrictHostKeyChecking=no") // Do not ask for confirmation because it is not a known host << QStringLiteral("-o") << QStringLiteral("UserKnownHostsFile=/dev/null") // Prevent storing as a known host - << QStringLiteral("-o") << QStringLiteral("HostKeyAlgorithms=+ssh-dss\\,ssh-rsa") // https://bugs.kde.org/show_bug.cgi?id=351725 - << QStringLiteral("-o") << QStringLiteral("PubkeyAcceptedKeyTypes=+ssh-rsa") // https://bugs.kde.org/show_bug.cgi?id=443155 << QStringLiteral("-o") << QStringLiteral("uid=") + QString::number(getuid()) << QStringLiteral("-o") << QStringLiteral("gid=") + QString::number(getgid()) << QStringLiteral("-o") << QStringLiteral("reconnect")