From 460eb70a81f13955f2ff32f38178c79695cb7413 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 24 Oct 2021 23:36:25 +0200 Subject: [PATCH] Allow ssh-rsa when mounting sshfs Fixes "Unable to negotiate with 192.168.0.10 port 1741: no matching host key type found. Their offer: ssh-rsa" --- plugins/sftp/mounter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sftp/mounter.cpp b/plugins/sftp/mounter.cpp index 2a4841862..15322d9bd 100644 --- a/plugins/sftp/mounter.cpp +++ b/plugins/sftp/mounter.cpp @@ -129,7 +129,7 @@ void Mounter::onPackageReceived(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") //https://bugs.kde.org/show_bug.cgi?id=351725 + << QStringLiteral("-o") << QStringLiteral("HostKeyAlgorithms=+ssh-dss\\,ssh-rsa") //https://bugs.kde.org/show_bug.cgi?id=351725 << QStringLiteral("-o") << QStringLiteral("uid=") + QString::number(getuid()) << QStringLiteral("-o") << QStringLiteral("gid=") + QString::number(getgid()) << QStringLiteral("-o") << QStringLiteral("reconnect")