From c8373e652cc51233ddd32f2810f212c32c53e1a0 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Fri, 25 Nov 2022 13:05:20 +0100 Subject: [PATCH] tests: Fix test with ssh as proxy command Signed-off-by: Andreas Schneider Reviewed-by: Jakub Jelen --- tests/client/torture_proxycommand.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/client/torture_proxycommand.c b/tests/client/torture_proxycommand.c index 7812a959..9b8019ca 100644 --- a/tests/client/torture_proxycommand.c +++ b/tests/client/torture_proxycommand.c @@ -127,7 +127,7 @@ static void torture_options_set_proxycommand_ssh(void **state) socket_t fd; rc = snprintf(command, sizeof(command), - "ssh -oStrictHostKeyChecking=no -W [%%h]:%%p alice@%s", + "ssh -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -W [%%h]:%%p alice@%s", address); assert_true((size_t)rc < sizeof(command)); @@ -152,7 +152,7 @@ static void torture_options_set_proxycommand_ssh_stderr(void **state) /* The -vvv switches produce the desired output on the standard error */ rc = snprintf(command, sizeof(command), - "ssh -vvv -oStrictHostKeyChecking=no -W [%%h]:%%p alice@%s", + "ssh -vvv -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null -W [%%h]:%%p alice@%s", address); assert_true((size_t)rc < sizeof(command));