RemoteLinux: Shut down an unresponsive SSH master connection

Otherwise, all subsequent ssh operations will silently fail.

Fixes: QTCREATORBUG-29982
Change-Id: I781aafcf408a9cb216f632e2beef92ec38652f57
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
Christian Kandeler
2023-12-11 14:20:50 +01:00
parent f8cdcfd70c
commit cf16ef3139

View File

@@ -185,6 +185,7 @@ void SshSharedConnection::connectToHost()
}); });
QStringList args = QStringList{"-M", "-N", "-o", "ControlPersist=no", QStringList args = QStringList{"-M", "-N", "-o", "ControlPersist=no",
"-o", "ServerAliveInterval=10", // TODO: Make configurable?
"-o", "PermitLocalCommand=yes", // Enable local command "-o", "PermitLocalCommand=yes", // Enable local command
"-o", "LocalCommand=echo"} // Local command is executed after successfully "-o", "LocalCommand=echo"} // Local command is executed after successfully
// connecting to the server. "echo" will print "\n" // connecting to the server. "echo" will print "\n"