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:
Bastian (BaM)
2025-09-15 09:34:00 +02:00
parent 50ac346030
commit 6dcc3d0ef3

View File

@@ -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