add ssh keepalive to perl ssh connection
This commit is contained in:
@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user