Linux guests aborting w/ ssh -X (X11Forward) to host
Posted: 1. Sep 2020, 19:31
Hi,
This is a strange problem that doesn't involve being connected to the guest. I just have to start it headless (using VBoxManage) from the host to which I'm connected remotely using ssh w/ X11Forward. The guest will abort when I logout of the ssh connection to the host. Other vms started from other ssh sessions are not affected. Everything is shell based in this scenario, nothing graphical. Confirmed to not occur when I connect to the host without X11Forward.
At logout, ssh actually hangs until I interrupt with Ctrl-C which is the point the abort occurs. Using ssh -vvv, it reports a number of open x11 connections after logout which are then closed with Ctrl-C. Looking at running processes, I see 'sshd: <user>@pts/2' get replaced with 'sshd: <user>@notty' at logout. After Ctrl-C, the notty session is gone as well as the 'sshd: <user> [priv]' which was originally started when ssh was initiated.
Can anyone explain why a running guest, with no actual connections, is dependent on X11Forward to run? Aside from the obvious (not using X11Forward), anyone know of any workarounds? I'm running 5.2.44 on Ubuntu 18.04 (LinuxMint 18).
Regards,
Brian
This is a strange problem that doesn't involve being connected to the guest. I just have to start it headless (using VBoxManage) from the host to which I'm connected remotely using ssh w/ X11Forward. The guest will abort when I logout of the ssh connection to the host. Other vms started from other ssh sessions are not affected. Everything is shell based in this scenario, nothing graphical. Confirmed to not occur when I connect to the host without X11Forward.
At logout, ssh actually hangs until I interrupt with Ctrl-C which is the point the abort occurs. Using ssh -vvv, it reports a number of open x11 connections after logout which are then closed with Ctrl-C. Looking at running processes, I see 'sshd: <user>@pts/2' get replaced with 'sshd: <user>@notty' at logout. After Ctrl-C, the notty session is gone as well as the 'sshd: <user> [priv]' which was originally started when ssh was initiated.
Can anyone explain why a running guest, with no actual connections, is dependent on X11Forward to run? Aside from the obvious (not using X11Forward), anyone know of any workarounds? I'm running 5.2.44 on Ubuntu 18.04 (LinuxMint 18).
Regards,
Brian