File disable_ssh_strict_host_key_checking.patch of Package virt-test
--- virttest/utils_env.py 2014-03-18 16:12:28.387314056 +0100
+++ virttest/utils_env.py.patched 2014-03-18 16:50:58.356706811 +0100
@@ -326,8 +326,9 @@
cmd_template = "%s -npvvvi any 'port 68 or port 546'"
cmd = cmd_template % utils_misc.find_command("tcpdump")
if self._params.get("remote_preprocess") == "yes":
- login_cmd = ("ssh -o UserKnownHostsFile=/dev/null -o "
- "PreferredAuthentications=password -p %s %s@%s" %
+ login_cmd = ("ssh -o UserKnownHostsFile=/dev/null "
+ "-o StrictHostKeyChecking=no "
+ "-p %s %s@%s" %
(port, username, address))
self._tcpdump = aexpect.ShellSession(
--- virttest/remote.py 2014-03-18 16:12:28.379314113 +0100
+++ virttest/remote.py.patched 2014-03-18 16:53:55.211505181 +0100
@@ -216,7 +216,8 @@
host = "%s%%%s" % (host, interface)
if client == "ssh":
cmd = ("ssh -o UserKnownHostsFile=/dev/null "
- "-o PreferredAuthentications=password -p %s %s@%s" %
+ "-o StrictHostKeyChecking=no "
+ "-p %s %s@%s" %
(port, username, host))
elif client == "telnet":
cmd = "telnet -l %s %s %s" % (username, host, port)
@@ -408,7 +409,8 @@
host = "%s%%%s" % (host, interface)
command = ("scp -v -o UserKnownHostsFile=/dev/null "
- "-o PreferredAuthentications=password -r %s "
+ "-o StrictHostKeyChecking=no "
+ "-r %s "
"-P %s %s %s@\[%s\]:%s" %
(limit, port, local_path, username, host, remote_path))
password_list = []
@@ -443,7 +445,8 @@
host = "%s%%%s" % (host, interface)
command = ("scp -v -o UserKnownHostsFile=/dev/null "
- "-o PreferredAuthentications=password -r %s "
+ "-o StrictHostKeyChecking=no "
+ "-r %s "
"-P %s %s@\[%s\]:%s %s" %
(limit, port, username, host, remote_path, local_path))
password_list = []
@@ -485,7 +488,8 @@
dst = "%s%%%s" % (dst, dst_inter)
command = ("scp -v -o UserKnownHostsFile=/dev/null -o "
- "PreferredAuthentications=password -r %s -P %s"
+ "-o StrictHostKeyChecking=no "
+ "-r %s -P %s"
" %s@\[%s\]:%s %s@\[%s\]:%s" %
(limit, port, s_name, src, s_path, d_name, dst, d_path))
password_list = []