From cf16ef31395942faf5cfd4db52120ba0a82814b5 Mon Sep 17 00:00:00 2001 From: Christian Kandeler Date: Mon, 11 Dec 2023 14:20:50 +0100 Subject: [PATCH] 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 Reviewed-by: Reviewed-by: Qt CI Bot --- src/plugins/remotelinux/linuxdevice.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/plugins/remotelinux/linuxdevice.cpp b/src/plugins/remotelinux/linuxdevice.cpp index 3f875f1ef4b..efafbaef40a 100644 --- a/src/plugins/remotelinux/linuxdevice.cpp +++ b/src/plugins/remotelinux/linuxdevice.cpp @@ -185,6 +185,7 @@ void SshSharedConnection::connectToHost() }); QStringList args = QStringList{"-M", "-N", "-o", "ControlPersist=no", + "-o", "ServerAliveInterval=10", // TODO: Make configurable? "-o", "PermitLocalCommand=yes", // Enable local command "-o", "LocalCommand=echo"} // Local command is executed after successfully // connecting to the server. "echo" will print "\n"