diff options
author | Christopher Baines <mail@cbaines.net> | 2018-06-23 23:43:45 +0100 |
---|---|---|
committer | Christopher Baines <mail@cbaines.net> | 2018-06-23 23:43:45 +0100 |
commit | d1f04420a1890705d4c4965d3f3296edee578920 (patch) | |
tree | b11bc9c4520dec0240f0f7545580b7b5019f1a4e | |
parent | e5c3d2979282404e7d89b4facc4e4f138aa2ae1d (diff) | |
download | govuk-mini-environment-admin-d1f04420a1890705d4c4965d3f3296edee578920.tar govuk-mini-environment-admin-d1f04420a1890705d4c4965d3f3296edee578920.tar.gz |
Disable strict host key checking
So that SSH can run without requiring manual intervention. This
shouldn't pose a security risk, as the network should be trusted.
-rw-r--r-- | lib/shell_utils.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/shell_utils.rb b/lib/shell_utils.rb index 5ce8959..0cd8947 100644 --- a/lib/shell_utils.rb +++ b/lib/shell_utils.rb @@ -30,6 +30,8 @@ module ShellUtils command = [ 'ssh', + # Use a automatically trust on first use model + '-o', 'StrictHostKeyChecking=no', run_remotely_on_host, *command ] |