summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2023-01-03 11:21:49 +0100
committerJohannes Schauer Marin Rodrigues <josch@mister-muffin.de>2023-01-03 11:32:16 +0100
commit45d00c2d54d8466a52262b7491f4a18279e398e3 (patch)
tree7237842746cade76b3860b3782137283b94e6fc7
parent08133d650c960272b8224bd5a0002c71083b30cf (diff)
downloaddebvm-45d00c2d54d8466a52262b7491f4a18279e398e3.tar.gz
more docs for the ssh options
-rwxr-xr-xdebvm-create1
-rwxr-xr-xdebvm-run3
2 files changed, 4 insertions, 0 deletions
diff --git a/debvm-create b/debvm-create
index 3c0d497..58094cc 100755
--- a/debvm-create
+++ b/debvm-create
@@ -42,6 +42,7 @@ By default, the hostname is B<testvm>.
Install the given ssh public key file into the virtual machine image for the root user.
This option also causes the ssh server to be installed.
By default, no key or server is installed.
+To connect to the vm, pass a port number to B<debvm-run> with the B<-s> option.
=item B<-m> I<mirror>, B<--mirror>=I<mirror>
diff --git a/debvm-run b/debvm-run
index 1e1b3d8..9b64ef4 100755
--- a/debvm-run
+++ b/debvm-run
@@ -37,6 +37,9 @@ By default B<rootfs.ext4> in the working directory is used.
=item B<-s> I<sshport>, B<--sshport>=I<sshport>
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
=item B<--> I<qemu options>