git://git.onelab.eu
/
sfa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6e52a98
)
use StricktHostKeyChecking=no ssh option
author
Tony Mack
<tmack@cs.princeton.edu>
Tue, 8 Dec 2009 19:56:49 +0000
(19:56 +0000)
committer
Tony Mack
<tmack@cs.princeton.edu>
Tue, 8 Dec 2009 19:56:49 +0000
(19:56 +0000)
sfa/methods/get_key.py
patch
|
blob
|
history
diff --git
a/sfa/methods/get_key.py
b/sfa/methods/get_key.py
index
dd9076c
..
d3416dc
100644
(file)
--- 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"
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
(status, output) = commands.getstatusoutput(scp_command)
if status:
raise Exception, output