From c1adc25b1d4e0190ba1e38c9f4ea468770f1bb22 Mon Sep 17 00:00:00 2001 From: xengineering Date: Sun, 21 Jul 2024 14:26:00 +0200 Subject: Document how to log into the guest VM with SSH --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 683169a..31ec98c 100644 --- a/README.md +++ b/README.md @@ -130,3 +130,17 @@ qemu-system-x86_64 \ -smp cpus=4 \ -nographic ``` + +## Use SSH to log into guest virtual machine + +Since the SSH server of the guest VM is available to the host on localhost port +9999 it is possible to use the `ssh` command to log into the VM from the host +using the password set in image creation with the `passwd` command. + +``` +ssh \ + -p 9999 \ + -o UserKnownHostsFile=/dev/null \ + -o StrictHostKeyChecking=no \ + root@localhost +``` -- cgit v1.2.3-70-g09d2