aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2019-01-08 20:11:01 +0000
committerChristopher Baines <mail@cbaines.net>2019-01-08 20:11:01 +0000
commitdb0e5e9e261d3fdf891c4e3fe6140118ae3b582a (patch)
tree56c1bac210bf21869c322b6e5bcb49ecc2eadb6b /lib
parentde44db00ab49e8adf4145cdc58e5416905609c23 (diff)
downloadgovuk-mini-environment-admin-db0e5e9e261d3fdf891c4e3fe6140118ae3b582a.tar
govuk-mini-environment-admin-db0e5e9e261d3fdf891c4e3fe6140118ae3b582a.tar.gz
Set the ServerAliveInterval for SSH
To help keep connections alive.
Diffstat (limited to 'lib')
-rw-r--r--lib/shell_utils.rb1
1 files changed, 1 insertions, 0 deletions
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),