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
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))