From f89d2d32025614d5b6a39314d0ea6ed4464d1888 Mon Sep 17 00:00:00 2001 From: Sree Harsha Totakura Date: Wed, 28 Oct 2015 19:50:44 +0000 Subject: [PATCH] testbed: disable host key checking along with password based authentication --- src/testbed/testbed_api_hosts.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/testbed/testbed_api_hosts.c b/src/testbed/testbed_api_hosts.c index 323548f8b..1c2d8a23c 100644 --- a/src/testbed/testbed_api_hosts.c +++ b/src/testbed/testbed_api_hosts.c @@ -824,7 +824,8 @@ free_argv (char **argv) * should not mention `-p' (port) option and destination address as these will * be set locally in the function from its parameteres. If the environmental * variable is not found then it defaults to `ssh -o BatchMode=yes -o - * NoHostAuthenticationForLocalhost=yes' + * NoHostAuthenticationForLocalhost=yes -o StrictHostkeyChecking=no -o + * PasswordAuthentication=noc' * * @param port the destination port number * @param hostname the hostname of the target host @@ -840,6 +841,10 @@ gen_rsh_args (const char *port, const char *hostname, const char *username) "BatchMode=yes", "-o", "NoHostAuthenticationForLocalhost=yes", + "-o", + "StrictHostKeyChecking=no", + "-o", + "PasswordAuthentication=no", "%h", NULL }; -- 2.25.1