qemu running in ssh: how to exit?
Solution 1:
Hit ALT-2
instead of CTRL-ALT-2, then type quit
This was already kind of answered over here
https://superuser.com/questions/582942/how-can-i-get-qemus-ctrlalt-keys-working-in-curses-mode
Solution 2:
What is the "command line based operating system" in use?
For example, if you are running FreeDOS, the command
fdapm poweroff
will gracefully power off the VM.
If the OS you are using does not have any power off commands, then using the qemu monitor may be the only option.
Solution 3:
Following key combination tells qemu to stop emulation and exit
Ctrl + a x