From d3d6e54d3f2b9419c6c74c43722d800aba5cd6c3 Mon Sep 17 00:00:00 2001 From: Matthieu Gautier Date: Wed, 8 Feb 2017 15:16:33 +0100 Subject: [PATCH] [TRAVIS] Do not StrictHostKeyChecking to allow scp script to connect. By default, at first connection, the user has to accept the server host_key. As we are running on travis, there is no user. Make ssh automatically add new host_key to know_hosts file. --- kiwix-deploy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiwix-deploy.py b/kiwix-deploy.py index a4b2ffc..be5b20d 100755 --- a/kiwix-deploy.py +++ b/kiwix-deploy.py @@ -53,7 +53,7 @@ class Deployer: def deploy(self, *files): if not files: return - command = "scp -v -p -i {id_file} {files_list} {host_addr}".format( + command = "scp -v -p -i -o StrictHostKeyChecking=no {id_file} {files_list} {host_addr}".format( id_file=self.options.ssh_private_key, files_list=' '.join("'{}'".format(f) for f in files), host_addr="{}:{}".format(self.options.server, self.options.base_path)