Line 0
Link Here
|
|
|
1 |
--- plugins/sftp/mounter.cpp.orig 2018-11-06 14:32:08.000000000 +0100 |
2 |
+++ plugins/sftp/mounter.cpp 2019-01-29 18:43:47.324002000 +0100 |
3 |
@@ -139,7 +139,7 @@ |
4 |
<< QStringLiteral("-o") << QStringLiteral("gid=") + QString::number(getgid()) |
5 |
<< QStringLiteral("-o") << QStringLiteral("reconnect") |
6 |
<< QStringLiteral("-o") << QStringLiteral("ServerAliveInterval=30") |
7 |
- << QStringLiteral("-o") << QStringLiteral("password_stdin") |
8 |
+ << QStringLiteral("-o") << QStringLiteral("ssh_command=sshpass -p ") + np.get<QString>("password").toLatin1() + (" ssh") |
9 |
; |
10 |
|
11 |
m_proc->setProgram(program, arguments); |
12 |
@@ -148,8 +148,8 @@ |
13 |
m_proc->start(); |
14 |
|
15 |
//qCDebug(KDECONNECT_PLUGIN_SFTP) << "Passing password: " << np.get<QString>("password").toLatin1(); |
16 |
- m_proc->write(np.get<QString>(QStringLiteral("password")).toLatin1()); |
17 |
- m_proc->write("\n"); |
18 |
+ //m_proc->write(np.get<QString>(QStringLiteral("password")).toLatin1()); |
19 |
+ // m_proc->write("\n"); |
20 |
|
21 |
} |
22 |
|