summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-31 17:14:18 +0000
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2014-03-31 17:14:18 +0000
commit9aa0d69dde58438edbcc1a55998af1da2fc5349b (patch)
tree75d472a44f738df2d744224d8265fb30dee7749d
parentb32fc9b3e09a61c45dff39809fafe4313fac2c12 (diff)
downloadlorry-controller-9aa0d69dde58438edbcc1a55998af1da2fc5349b.tar.gz
Add some ssh options when accessing gitano over ssh
-rw-r--r--lorrycontroller/gitano.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/lorrycontroller/gitano.py b/lorrycontroller/gitano.py
index c1347d5..b2c9123 100644
--- a/lorrycontroller/gitano.py
+++ b/lorrycontroller/gitano.py
@@ -81,8 +81,15 @@ class GitanoCommand(object):
def _ssh_command(self, gitano_args):
quoted_args = [cliapp.shell_quote(x) for x in gitano_args]
+ base_argv = [
+ 'ssh',
+ '-oStrictHostKeyChecking=no',
+ '-oBatchMode=yes',
+ 'git@%s' % self.trovehost,
+ ]
+
exit, stdout, stderr = cliapp.runcmd_unchecked(
- ['ssh', 'git@%s' % self.trovehost] + quoted_args)
+ base_argv + quoted_args)
if exit != 0:
logging.error(