From a735f5cd537e53dc09605dbc645509bb1f5ef98f Mon Sep 17 00:00:00 2001 From: lisimin Date: Tue, 15 Mar 2022 11:11:23 +0800 Subject: [PATCH] revert ServerAliveInterval time to 60, and add timeout time to 3600 Signed-off-by: lisimin --- script/tools/copy_embedded_img.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/tools/copy_embedded_img.sh b/script/tools/copy_embedded_img.sh index da9c6da..2c5396b 100644 --- a/script/tools/copy_embedded_img.sh +++ b/script/tools/copy_embedded_img.sh @@ -25,8 +25,8 @@ fi fi mkdir tmpdir expect <<-END1 - set timeout 2700 - spawn scp -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=2700 -r ${source_user}@${source_ip}:${source_dir}/* ./tmpdir/ + set timeout 3600 + spawn scp -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=60 -r ${source_user}@${source_ip}:${source_dir}/* ./tmpdir/ expect { -re "\[P|p]assword:" { send "${source_pwd}\r" @@ -45,7 +45,7 @@ fi echo "[ERROR]: scp failed." exit 1 else - scp -i ${ssh_key} -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=2700 -r tmpdir/* root@${dest_ip}:${latest_iso_dir}/embedded_img/ + scp -i ${ssh_key} -o StrictHostKeyChecking=no -o LogLevel=ERROR -o ServerAliveInterval=60 -r tmpdir/* root@${dest_ip}:${latest_iso_dir}/embedded_img/ if [ $? -ne 0 ];then echo "[ERROR]: scp embedded_img to dailybuild failed." exit 1 -- Gitee