diff mbox series

[isar-cip-core,01/19] start-qemu.sh: Add ssh access to guest from localhost

Message ID 0ab69754d5edbdb0ce740b460e3a4d80dc016da2.1649834193.git.jan.kiszka@siemens.com (mailing list archive)
State Handled Elsewhere
Headers show
Series SWUpdate & EFI Boot Guard refactorings | expand

Commit Message

Jan Kiszka April 13, 2022, 7:16 a.m. UTC
From: Jan Kiszka <jan.kiszka@siemens.com>

Permit ssh logins to the guest from the host using port 22222
forwarding, but only from the local machine. This is useful, e.g., to
send an swu file into the VM for testing swupdate.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 start-qemu.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/start-qemu.sh b/start-qemu.sh
index e986791..c5cd9fa 100755
--- a/start-qemu.sh
+++ b/start-qemu.sh
@@ -117,7 +117,7 @@  shift 1
 QEMU_COMMON_OPTIONS=" \
 	-m 1G \
 	-serial mon:stdio \
-	-netdev user,id=net \
+	-netdev user,id=net,hostfwd=tcp:127.0.0.1:22222-:22 \
 	${QEMU_EXTRA_ARGS}"
 
 if [ -n "${SECURE_BOOT}" ]; then