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"