merge: bound identity-key deployment connections

This commit is contained in:
WuYongJie 2026-08-05 13:31:14 +08:00
commit d12ecc74f2

View File

@ -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"