diff options
author | Sree Harsha Totakura <totakura@in.tum.de> | 2015-10-28 19:50:44 +0000 |
---|---|---|
committer | Sree Harsha Totakura <totakura@in.tum.de> | 2015-10-28 19:50:44 +0000 |
commit | f89d2d32025614d5b6a39314d0ea6ed4464d1888 (patch) | |
tree | e922a3d801b1b19f9007079c7f17d90c0019f98f /src/testbed/testbed_api_hosts.c | |
parent | 15604d3b324357e80b4f7cd9d2c5e9855e56656d (diff) | |
download | gnunet-f89d2d32025614d5b6a39314d0ea6ed4464d1888.tar.gz gnunet-f89d2d32025614d5b6a39314d0ea6ed4464d1888.zip |
testbed: disable host key checking along with password based authentication
Diffstat (limited to 'src/testbed/testbed_api_hosts.c')
-rw-r--r-- | src/testbed/testbed_api_hosts.c | 7 |
1 files changed, 6 insertions, 1 deletions
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) | |||
824 | * should not mention `-p' (port) option and destination address as these will | 824 | * should not mention `-p' (port) option and destination address as these will |
825 | * be set locally in the function from its parameteres. If the environmental | 825 | * be set locally in the function from its parameteres. If the environmental |
826 | * variable is not found then it defaults to `ssh -o BatchMode=yes -o | 826 | * variable is not found then it defaults to `ssh -o BatchMode=yes -o |
827 | * NoHostAuthenticationForLocalhost=yes' | 827 | * NoHostAuthenticationForLocalhost=yes -o StrictHostkeyChecking=no -o |
828 | * PasswordAuthentication=noc' | ||
828 | * | 829 | * |
829 | * @param port the destination port number | 830 | * @param port the destination port number |
830 | * @param hostname the hostname of the target host | 831 | * @param hostname the hostname of the target host |
@@ -840,6 +841,10 @@ gen_rsh_args (const char *port, const char *hostname, const char *username) | |||
840 | "BatchMode=yes", | 841 | "BatchMode=yes", |
841 | "-o", | 842 | "-o", |
842 | "NoHostAuthenticationForLocalhost=yes", | 843 | "NoHostAuthenticationForLocalhost=yes", |
844 | "-o", | ||
845 | "StrictHostKeyChecking=no", | ||
846 | "-o", | ||
847 | "PasswordAuthentication=no", | ||
843 | "%h", | 848 | "%h", |
844 | NULL | 849 | NULL |
845 | }; | 850 | }; |