fix: SSH 改用 bash -c 避免登录 shell 卡住,添加心跳保活

This commit is contained in:
liufumingren 2026-07-25 01:50:23 +08:00
parent c5bd7138e8
commit c5a6270ba7

View File

@ -223,7 +223,7 @@ function runSsh(config, remoteScript, options = {}) {
const args = [
...buildSshBaseArgs(config),
`${config.username}@${config.host}`,
`bash -lc ${quoteForBash(remoteScript)}`,
`bash -c ${quoteForBash(remoteScript)}`,
];
return runCommand('ssh', args, {