From: Tony Mack Date: Tue, 8 Dec 2009 19:56:49 +0000 (+0000) Subject: use StricktHostKeyChecking=no ssh option X-Git-Tag: sfa-0.9-7~182 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=87957ceee3ca7e32afd17693e6d3e443c059ed53;p=sfa.git use StricktHostKeyChecking=no ssh option --- diff --git a/sfa/methods/get_key.py b/sfa/methods/get_key.py index dd9076cd..d3416dc5 100644 --- a/sfa/methods/get_key.py +++ b/sfa/methods/get_key.py @@ -60,7 +60,9 @@ class get_key(Method): host = node['hostname'] dest="/etc/sfa/nodekey.key" identity = "/etc/planetlab/root_ssh_key.rsa" - scp_command = "/usr/bin/scp -i %(identity)s %(filename)s root@%(host)s:%(dest)s" % locals() + scp_options=" -i %(identity)s %(filename)s " % locals() + scp_options+="-o StrictHostKeyChecking=no " % locals() + scp_command = "/usr/bin/scp %(scp_options)s root@%(host)s:%(dest)s" % locals() (status, output) = commands.getstatusoutput(scp_command) if status: raise Exception, output