Ssh – Detach X11 app and reattach on another

sshx11x11forwarding

Given a setup of a headless Linux box running on a network, but having Xorg installed, and having various other machines on the network capable of using SSH with X-forwarding to connect to that box, and have X11 apps run on the local machine, I have an interesting question.

I'm familiar with using 'screen' to encapsulate an SSH session such that I can detach and reattach to it from a different machine, and while detached, processes continue to run, and when I reattach, I can scroll back through the buffer and see what was output.

Is the same thing possible for X11 apps? I ran into the situation where I wanted to run wireshark for some time to do some packet sniffing, but while it was running, I needed to switch computers, but realized there was no way that I knew to 'disconnect' from the wireshark thread, while still leaving it running, and in a state that I could reconnect to it at a later time (perhaps from a different machine) through another SSH session. Is there a similar process to the 'screen' disconnect/reconnect that can be done with X11 apps that are forwarded to a remote machine?

Best Answer

VNC will do this for you. It's the Unix version of remote desktop.