virtualisation/qemu.md
... ...
@@ -16,3 +16,17 @@ qemu-system-x86_64 -m 1g -cdrom /path/to/iso -boot order=d -drive file=<filename
16 16
```
17 17
qemu-system-x86_64 <filename>
18 18
```
19
+
20
+## ssh
21
+* start system with port
22
+```
23
+qemu-system-x86_64 <filename> -nic user,hostfwd=tcp::8888-:22
24
+```
25
+* from host
26
+```
27
+ssh <user>@127.0.0.1 -p 8888
28
+```
29
+* from guest
30
+```
31
+ssh <user>@192.168.0.3 # or whatever the local ip is
32
+```