mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-24 15:18:02 +00:00
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
This commit is contained in:
parent
7d2628e805
commit
9d944d0662
1 changed files with 8 additions and 1 deletions
|
@ -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()?;
|
||||
|
|
Loading…
Reference in a new issue