From 9d944d0662eb4b0b769ef64a63310332b03ef050 Mon Sep 17 00:00:00 2001 From: Thorsten Ball Date: Wed, 16 Oct 2024 16:13:31 +0200 Subject: [PATCH] ssh remote: Restore ControlPersist=no (#19277) This restores the change from #19193 that I erroneously reverted in #19234. I think the bug in #19275 got in my way when testing. With that bug fixed, the changes in here also work fine. Release Notes: - N/A --- crates/remote/src/ssh_session.rs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs index ed4bbbefae..2bb4cc7fb2 100644 --- a/crates/remote/src/ssh_session.rs +++ b/crates/remote/src/ssh_session.rs @@ -1186,7 +1186,14 @@ impl SshRemoteConnection { .stderr(Stdio::piped()) .env("SSH_ASKPASS_REQUIRE", "force") .env("SSH_ASKPASS", &askpass_script_path) - .args(["-N", "-o", "ControlMaster=yes", "-o"]) + .args([ + "-N", + "-o", + "ControlPersist=no", + "-o", + "ControlMaster=yes", + "-o", + ]) .arg(format!("ControlPath={}", socket_path.display())) .arg(&url) .spawn()?;