Update SSH command options to disable strict host key checking and comment out known hosts file option for improved flexibility.
This commit is contained in:
@@ -99,8 +99,8 @@ function ssh_module.execute_with_output(command, user, host, port, identity_file
|
||||
"-o", "ConnectTimeout=30",
|
||||
"-o", "ServerAliveInterval=5",
|
||||
"-o", "ServerAliveCountMax=1",
|
||||
"-o", "UserKnownHostsFile=/root/.ssh/known_hosts",
|
||||
"-o", "StrictHostKeyChecking=yes",
|
||||
-- "-o", "UserKnownHostsFile=/root/.ssh/known_hosts",
|
||||
"-o", "StrictHostKeyChecking=no",
|
||||
}
|
||||
|
||||
if identity_file ~= "" then
|
||||
|
||||
Reference in New Issue
Block a user