diff --git a/scripts/deploy-yydd-prod-from-git.ps1 b/scripts/deploy-yydd-prod-from-git.ps1 index 5c0aa203..d61f58bb 100644 --- a/scripts/deploy-yydd-prod-from-git.ps1 +++ b/scripts/deploy-yydd-prod-from-git.ps1 @@ -124,6 +124,14 @@ function Invoke-Plink { "StrictHostKeyChecking=yes" "-o" ("UserKnownHostsFile={0}" -f $knownHostsPath) + "-o" + "ConnectTimeout=20" + "-o" + "ConnectionAttempts=1" + "-o" + "ServerAliveInterval=15" + "-o" + "ServerAliveCountMax=2" "-i" $IdentityFile "-p" @@ -175,6 +183,10 @@ function Copy-WithPscp { "StrictHostKeyChecking=yes" "-o" ("UserKnownHostsFile={0}" -f $knownHostsPath) + "-o" + "ConnectTimeout=20" + "-o" + "ConnectionAttempts=1" "-i" $IdentityFile "-P"