Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

remote: Disable ControlPersist for master ssh connection (#19193)

Shish7d5fe66b54cb
diff --git a/crates/remote/src/ssh_session.rs b/crates/remote/src/ssh_session.rs
index 564b94070f2..7a2073bb55e 100644
--- a/crates/remote/src/ssh_session.rs
+++ b/crates/remote/src/ssh_session.rs
@@ -1144,7 +1144,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()?;