From db0e5e9e261d3fdf891c4e3fe6140118ae3b582a Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Tue, 8 Jan 2019 20:11:01 +0000 Subject: Set the ServerAliveInterval for SSH To help keep connections alive. --- lib/shell_utils.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/shell_utils.rb b/lib/shell_utils.rb index 22bf05b..9689f4e 100644 --- a/lib/shell_utils.rb +++ b/lib/shell_utils.rb @@ -44,6 +44,7 @@ module ShellUtils 'ssh', # Use a automatically trust on first use model '-o', 'StrictHostKeyChecking=no', + '-o', 'ServerAliveInterval=20', '-i', identity_file.path, run_remotely_on_host.user_at_address, *environment_variables_to_shell_arguments(environment_variables), -- cgit v1.2.3