ssh: Enable BatchMode

This commit is contained in:
Zhaofeng Li 2022-04-19 00:29:35 -07:00
parent 11289dd7ff
commit 5a81996afb

View file

@ -197,7 +197,7 @@ impl Ssh {
fn ssh_options(&self) -> Vec<String> { fn ssh_options(&self) -> Vec<String> {
// TODO: Allow configuation of SSH parameters // TODO: Allow configuation of SSH parameters
let mut options: Vec<String> = ["-o", "StrictHostKeyChecking=accept-new", "-T"] let mut options: Vec<String> = ["-o", "StrictHostKeyChecking=accept-new", "-o", "BatchMode=yes", "-T"]
.iter().map(|s| s.to_string()).collect(); .iter().map(|s| s.to_string()).collect();
if let Some(port) = self.port { if let Some(port) = self.port {