Ubuntu – Redirect existing windows via SSH and X11 forwarding

sshx11-forwarding

Using ssh -X user@host I can start programs on the host and X11 forwarding allows me to see their windows on the remote machine. However, I'd like to be able to forward/redirect existing windows.

How would I do that (if it's possible at all)?

Note, VNC is not an option (no server installed on the host and my user has limited permissions).

Best Answer

It looks like xpra is an active successor to xmove, and does exactly what you want. The devs bill it as "screen for X clients". While it needs to run on your remote server, it runs just fine out of a home folder. Besides python, xvfb is a runtime dependency.

Once you get it installed on the remote server, it's pretty easy to use.

xpra start :8 --start=xeyes

On your local machine, run:

xpra attach ssh:YOURSERVERHOST:8
Related Question