From 5e0f34ecb71f51958de4f90cf5bce752b6c565be Mon Sep 17 00:00:00 2001 From: WuYongJie Date: Wed, 5 Aug 2026 13:31:13 +0800 Subject: [PATCH] fix(deploy): bound OpenSSH identity connections --- scripts/deploy-yydd-prod-from-git.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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"