I'm exporting my display from a remote system, to a local system. At first it works fine, but after about 20 minutes exported windows start to disappear, and attempting to open new windows give me errors like:
Code:
Error: Can't open display: localhost:10.0
I'm creating the connection with:
and export display gets set correctly on the remote system:
Code:
env |grep DISPLAY
DISPLAY=localhost:10.0
I'm looking for:
A) remediation: How to reconnect the disconnected display while still in the same ssh session.
B) prevention: What is the cause, and how to prevent the disconnection in the first place.
remote/guest system:
Ubuntu 18.04
OpenSSH_7.6p1 Ubuntu-4, OpenSSL 1.0.2n 7 Dec 2017
xorg-server 1.19.6
running under VirtualBox 5.2.16
local/host system:
MacOS 10.13.6
homebrew 1.6.9
xquartz 2.7.11 (xorg-server 1.18.4)
OpenSSH_7.6p1, LibreSSL 2.6.2
network:
VirtualBox Host-only Adapter