From 3cc914e7e27627c9db75cbd95cf6b8d54d641f8a Mon Sep 17 00:00:00 2001 From: Helmut Grohne Date: Fri, 20 Jan 2023 17:10:55 +0100 Subject: use ssh option NoHostAuthenticationForLocalhost --- bin/debvm-run | 2 +- tests/test_common.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/debvm-run b/bin/debvm-run index 0ef8740..7847cba 100755 --- a/bin/debvm-run +++ b/bin/debvm-run @@ -39,7 +39,7 @@ By default F in the working directory is used. If given, B is configured to pass connections to I<127.0.0.1:sshport> to port 22 of the virtual machine. You can connect to your virtual machine without updating your known hosts like this: - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -p $sshport root@127.0.0.1 + ssh -o NoHostAuthenticationForLocalhost=yes -p $sshport root@127.0.0.1 =item B<--> I diff --git a/tests/test_common.sh b/tests/test_common.sh index cba9693..3d9d667 100644 --- a/tests/test_common.sh +++ b/tests/test_common.sh @@ -3,5 +3,5 @@ run_ssh() { test -n "${SSH_KEYPATH:-}" && set -- -i "$SSH_KEYPATH" "$@" test -n "${SSH_PORT:-}" && set -- -p "$SSH_PORT" "$@" - ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -l root "$@" + ssh -o NoHostAuthenticationForLocalhost=yes -l root "$@" } -- cgit v1.2.3