Browse Source

Update SSH command options to disable strict host key checking and comment out known hosts file option for improved flexibility.

main
Bastian (BaM) 3 months ago
parent
commit
6dcc3d0ef3
  1. 4
      scripts/ssh.lua

4
scripts/ssh.lua

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

Loading…
Cancel
Save