--- plugins/sftp/mounter.cpp.orig 2022-11-30 00:45:32 UTC +++ plugins/sftp/mounter.cpp @@ -129,7 +129,7 @@ void Mounter::onPackageReceived(const NetworkPacket &n << 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") << QStringLiteral("-o") - << QStringLiteral("ServerAliveInterval=30") << QStringLiteral("-o") << QStringLiteral("password_stdin"); + << QStringLiteral("-o") << QStringLiteral("ssh_command=sshpass -p %1 %2").arg(np.get(QStringLiteral("password")), QStringLiteral("ssh")); m_proc->setProgram(program, arguments); @@ -137,8 +137,8 @@ void Mounter::onPackageReceived(const NetworkPacket &n m_proc->start(); // qCDebug(KDECONNECT_PLUGIN_SFTP) << "Passing password: " << np.get("password").toLatin1(); - m_proc->write(np.get(QStringLiteral("password")).toLatin1()); - m_proc->write("\n"); + //m_proc->write(np.get(QStringLiteral("password")).toLatin1()); + //m_proc->write("\n"); } void Mounter::onStarted()