diff --git a/updater/src/index.js b/updater/src/index.js index 8a534be..d13726e 100644 --- a/updater/src/index.js +++ b/updater/src/index.js @@ -111,6 +111,7 @@ async function sshGet(host, cmdArgs) { const { stdout } = await spawnAsync('ssh', [ '-i', SSH_KEY, '-o', 'StrictHostKeyChecking=no', + '-o', 'UserKnownHostsFile=/dev/null', '-o', 'ConnectTimeout=2', `root@${host}`, ...cmdArgs, @@ -126,6 +127,7 @@ async function sshExec(host, command) { const child = spawn('ssh', [ '-i', SSH_KEY, '-o', 'StrictHostKeyChecking=no', + '-o', 'UserKnownHostsFile=/dev/null', '-o', 'ConnectTimeout=5', `root@${host}`, 'sh', '-c', command, @@ -202,6 +204,7 @@ async function deploy(target, repoName) { const { stdout } = await spawnAsync('ssh', [ '-i', SSH_KEY, '-o', 'StrictHostKeyChecking=no', + '-o', 'UserKnownHostsFile=/dev/null', `root@${target.host}`, 'sh', '-c', remoteCmd, ], { timeout: 300_000 })