From: Thierry Parmentelat Date: Fri, 28 Mar 2008 15:46:37 +0000 (+0000) Subject: set ssh options on the command line X-Git-Tag: tests-4.2-4~138 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a5c693b51d8a1c6e6b40938ec46308496a8cda53;p=tests.git set ssh options on the command line --- diff --git a/system/TestPlc.py b/system/TestPlc.py index 75a90cd..6ae3e88 100644 --- a/system/TestPlc.py +++ b/system/TestPlc.py @@ -485,7 +485,7 @@ class TestPlc: while tocheck: for hostname in tocheck: # try to ssh in nodes - access=self.run_in_guest('ssh -i /etc/planetlab/root_ssh_key.rsa root@%s date'%hostname ) + access=self.run_in_guest('ssh -o StrictHostKeyChecking=no -o BatchMode=yes -i /etc/planetlab/root_ssh_key.rsa root@%s date'%hostname ) if (not access): utils.header('The node %s is sshable -->'%hostname) # refresh tocheck diff --git a/system/TestSsh.py b/system/TestSsh.py index b46b558..38d514b 100644 --- a/system/TestSsh.py +++ b/system/TestSsh.py @@ -62,7 +62,7 @@ class TestSsh: def run_in_buildname (self,command): if self.is_local(): return utils.system(command) - ssh_command="ssh " + ssh_command="ssh -o StrictHostKeyChecking=no -o BatchMode=yes " if self.key: ssh_command += "-i %s.rsa "%(self.key) ssh_command += "%s %s/%s"%(self.hostname,self.buildname,TestSsh.backslash_shell_specials(command))