summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/debvm-run2
-rw-r--r--tests/test_common.sh2
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<rootfs.ext4> in the working directory is used.
If given, B<qemu> 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<qemu options>
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 "$@"
}