I have a qemu virtual machine. I want to cleanly power it off using SSH (I want to use it for a systemd service).Currently I didssh vm /sbin/poweroffThis works, but ssh return a 255 error code.I tried ssh vm 'nohup /sbin/poweroff &'But then the machine doesn't power off. Why?
Poweroff via ssh with a nohup
ssh;nohup