fix: SSH 改用 bash -c 避免登录 shell 卡住,添加心跳保活
This commit is contained in:
parent
c5bd7138e8
commit
c5a6270ba7
@ -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, {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user