From 87957ceee3ca7e32afd17693e6d3e443c059ed53 Mon Sep 17 00:00:00 2001 From: Tony Mack Date: Tue, 8 Dec 2009 19:56:49 +0000 Subject: [PATCH] use StricktHostKeyChecking=no ssh option --- sfa/methods/get_key.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.43.0