aboutsummaryrefslogtreecommitdiff
path: root/src/main.rs
diff options
context:
space:
mode:
authordiogo464 <[email protected]>2025-07-24 12:46:11 +0100
committerdiogo464 <[email protected]>2025-07-24 12:46:11 +0100
commit4cb719cd459a7b53e40e57d8dcf4e2cdf72e99f9 (patch)
tree05d7086fc8931d4a66dbd5eac5c7be744eb69013 /src/main.rs
parenta1c7032d014a7c8748619a1fe80213e1012aed61 (diff)
added ConnectionAttempts ssh option
Diffstat (limited to 'src/main.rs')
-rw-r--r--src/main.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs
index 71aae13..cba59b8 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -579,7 +579,9 @@ async fn machine_containers_save_logs(
579async fn machine_copy_logs_dir(ctx: &Context, machine: Machine, output_dir: &Path) -> Result<()> { 579async fn machine_copy_logs_dir(ctx: &Context, machine: Machine, output_dir: &Path) -> Result<()> {
580 tracing::info!("copying container logs from machine"); 580 tracing::info!("copying container logs from machine");
581 581
582 let mut rsync_rsh = format!("ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"); 582 let mut rsync_rsh = format!(
583 "ssh -o ConnectionAttempts=3 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null"
584 );
583 if ctx.node == ExecutionNode::Unknown { 585 if ctx.node == ExecutionNode::Unknown {
584 rsync_rsh += &format!(" -J {}", ctx.frontend_hostname()?); 586 rsync_rsh += &format!(" -J {}", ctx.frontend_hostname()?);
585 } 587 }
@@ -674,6 +676,8 @@ async fn machine_run(
674) -> Result<Output> { 676) -> Result<Output> {
675 let ssh_common = &[ 677 let ssh_common = &[
676 "-o", 678 "-o",
679 "ConnectionAttempts=3",
680 "-o",
677 "StrictHostKeyChecking=no", 681 "StrictHostKeyChecking=no",
678 "-o", 682 "-o",
679 "UserKnownHostsFile=/dev/null", 683 "UserKnownHostsFile=/dev/null",