diff options
author | Helmut Grohne <helmut@subdivi.de> | 2023-01-20 17:10:55 +0100 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2023-01-20 17:10:55 +0100 |
commit | 3cc914e7e27627c9db75cbd95cf6b8d54d641f8a (patch) | |
tree | d23561583de73d2d2fbf783bf02599bfd525420e | |
parent | 4d6c6efcca1d97d19e97dfcd307c5b4cffd14c7f (diff) | |
download | debvm-3cc914e7e27627c9db75cbd95cf6b8d54d641f8a.tar.gz |
use ssh option NoHostAuthenticationForLocalhost
-rwxr-xr-x | bin/debvm-run | 2 | ||||
-rw-r--r-- | 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<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 "$@" } |