[taskboard] isolate direct ssh from host config
This commit is contained in:
@@ -233,12 +233,18 @@ async function dispatchDirectTask(taskId: number): Promise<DispatchResult> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const sshArgs = [
|
const sshArgs = [
|
||||||
|
"-F",
|
||||||
|
"/dev/null",
|
||||||
"-o",
|
"-o",
|
||||||
"BatchMode=yes",
|
"BatchMode=yes",
|
||||||
"-o",
|
"-o",
|
||||||
"StrictHostKeyChecking=accept-new",
|
"StrictHostKeyChecking=accept-new",
|
||||||
"-o",
|
"-o",
|
||||||
"ConnectTimeout=15",
|
"ConnectTimeout=15",
|
||||||
|
"-o",
|
||||||
|
"IdentitiesOnly=yes",
|
||||||
|
"-o",
|
||||||
|
"UserKnownHostsFile=/tmp/taskboard_known_hosts",
|
||||||
"-i",
|
"-i",
|
||||||
DIRECT_SSH_KEY_PATH,
|
DIRECT_SSH_KEY_PATH,
|
||||||
"-p",
|
"-p",
|
||||||
|
|||||||
Reference in New Issue
Block a user