grimoire

personal wiki
git clone git://git.pyratebeard.net/grimoire.git
Log | Files | Refs

commit 6a7653a7089d990b7a37d474991f95fc868d51e2
parent 7779483006fe9fe306477680010b2bcbb16f0c23
Author: pyratebeard <root@pyratebeard.net>
Date:   Thu, 22 Dec 2022 11:26:12 +0000

updates

Diffstat:
Mvirtualisation/qemu.md | 14++++++++++++++
1 file changed, 14 insertions(+), 0 deletions(-)

diff --git a/virtualisation/qemu.md b/virtualisation/qemu.md @@ -16,3 +16,17 @@ qemu-system-x86_64 -m 1g -cdrom /path/to/iso -boot order=d -drive file=<filename ``` qemu-system-x86_64 <filename> ``` + +## ssh +* start system with port +``` +qemu-system-x86_64 <filename> -nic user,hostfwd=tcp::8888-:22 +``` +* from host +``` +ssh <user>@127.0.0.1 -p 8888 +``` +* from guest +``` +ssh <user>@192.168.0.3 # or whatever the local ip is +```