add ssh keepalive to perl ssh connection

This commit is contained in:
2026-04-21 18:39:27 +02:00
parent d1d6e4de34
commit 371b323980

View File

@ -35,6 +35,7 @@ sub ssh_connect {
master_opts => [ master_opts => [
-o => 'BatchMode=yes', -o => 'BatchMode=yes',
-o => 'StrictHostKeyChecking=accept-new', -o => 'StrictHostKeyChecking=accept-new',
-o => 'ServerAliveInterval=60',
], ],
); );
$_remote->error and die 'SSH connection failed: ' . $_remote->error; $_remote->error and die 'SSH connection failed: ' . $_remote->error;