Update ssh.service.ts

This commit is contained in:
Baobhan Sith
2025-04-25 18:48:04 +08:00
parent 021031c6eb
commit 7eb8b0b4f8
@@ -115,6 +115,7 @@ export const establishSshConnection = (
privateKey: connDetails.privateKey, privateKey: connDetails.privateKey,
passphrase: connDetails.passphrase, passphrase: connDetails.passphrase,
readyTimeout: timeout, readyTimeout: timeout,
tryKeyboard: true, // 尝试处理 keyboard-interactive 认证
keepaliveInterval: 10000, // 保持连接 keepaliveInterval: 10000, // 保持连接
keepaliveCountMax: 10, keepaliveCountMax: 10,
}; };