From 5a81996afb89da31f9a472417328b56e4276501f Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Tue, 19 Apr 2022 00:29:35 -0700 Subject: [PATCH] ssh: Enable BatchMode --- src/nix/host/ssh.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/host/ssh.rs b/src/nix/host/ssh.rs index 35f28ef..12d3c27 100644 --- a/src/nix/host/ssh.rs +++ b/src/nix/host/ssh.rs @@ -197,7 +197,7 @@ impl Ssh { fn ssh_options(&self) -> Vec { // TODO: Allow configuation of SSH parameters - let mut options: Vec = ["-o", "StrictHostKeyChecking=accept-new", "-T"] + let mut options: Vec = ["-o", "StrictHostKeyChecking=accept-new", "-o", "BatchMode=yes", "-T"] .iter().map(|s| s.to_string()).collect(); if let Some(port) = self.port {