|
|
@ -99,8 +99,8 @@ function ssh_module.execute_with_output(command, user, host, port, identity_file |
|
|
"-o", "ConnectTimeout=30", |
|
|
"-o", "ConnectTimeout=30", |
|
|
"-o", "ServerAliveInterval=5", |
|
|
"-o", "ServerAliveInterval=5", |
|
|
"-o", "ServerAliveCountMax=1", |
|
|
"-o", "ServerAliveCountMax=1", |
|
|
"-o", "UserKnownHostsFile=/root/.ssh/known_hosts", |
|
|
-- "-o", "UserKnownHostsFile=/root/.ssh/known_hosts", |
|
|
"-o", "StrictHostKeyChecking=yes", |
|
|
"-o", "StrictHostKeyChecking=no", |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if identity_file ~= "" then |
|
|
if identity_file ~= "" then |
|
|
|