aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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",