From 9b0faa7a5c9b57eee1cd765af3110f2bebd79402 Mon Sep 17 00:00:00 2001 From: Masami HIRAMATSU Date: Thu, 12 Dec 2024 14:22:51 +0900 Subject: [PATCH] Remove ConnectTimeout option The appropriate timeout depends on the running environment. So it should be configured by `ssh_overrides` configuration key. If you want to set the timeout as 10 seconds, you can configure it via `cro3 config` as below; ``` cro3 config set ssh_overrides -- "*" "/bin/true" "-o" "ConnectTimeout=10" ``` --- src/dut.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/dut.rs b/src/dut.rs index 2214e7cf..be55b551 100644 --- a/src/dut.rs +++ b/src/dut.rs @@ -45,7 +45,7 @@ use crate::util::shell_helpers::get_stderr; use crate::util::shell_helpers::get_stdout; use crate::util::shell_helpers::run_bash_command; -const COMMON_SSH_OPTIONS: [&str; 16] = [ +const COMMON_SSH_OPTIONS: [&str; 14] = [ // Do not read ~/.ssh/config to avoid effects comes from ssh_config "-F", "none", @@ -64,9 +64,6 @@ const COMMON_SSH_OPTIONS: [&str; 16] = [ // Silence the "Warning: Permanently added ... to the list of known hosts" message "-o", "LogLevel=ERROR", - // Set connection timeout to give up quickly - "-o", - "ConnectTimeout=5", // Try pubkey auth only "-o", "PreferredAuthentications=publickey",