Update ssh.service.ts

This commit is contained in:
Baobhan Sith
2025-05-14 12:48:25 +08:00
parent 31d5cc3da5
commit d559916b5e
+1 -1
View File
@@ -146,7 +146,7 @@ export const establishSshConnection = (
passphrase: connDetails.passphrase,
readyTimeout: timeout,
keepaliveInterval: 5000, // 修改:每 5 秒发送一次 keepalive
keepaliveCountMax: 5, // 修改:最多尝试 5 次 (总超时约 5*5=10 秒)
keepaliveCountMax: 10, // 修改:最多尝试 10 次 (总超时约 10*5=50 秒)
};
const readyHandler = async () => { // 改为 async 函数