testbed: disable host key checking along with password based authentication
authorSree Harsha Totakura <totakura@in.tum.de>
Wed, 28 Oct 2015 19:50:44 +0000 (19:50 +0000)
committerSree Harsha Totakura <totakura@in.tum.de>
Wed, 28 Oct 2015 19:50:44 +0000 (19:50 +0000)
src/testbed/testbed_api_hosts.c

index 323548f8be07e45a05bc66c02401490421ae0c08..1c2d8a23c5c284c319089ecc0f438bf928d70eb7 100644 (file)
@@ -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
   };