--- plugins/sftp/mounter.cpp.orig 2023-12-18 22:14:59 UTC +++ plugins/sftp/mounter.cpp @@ -128,7 +128,7 @@ void Mounter::onPacketReceived(const NetworkPacket &np << 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")); // clang-format on m_proc->setProgram(program, arguments); @@ -137,8 +137,8 @@ void Mounter::onPacketReceived(const NetworkPacket &np 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()