How to attach to remote machine's local display session over ssh?
Solution 1
You can run both a VNC server and VNC viewer on the home computer, X-forwarding the VNC viewer through the SSH connection. It's VNC, but you don't need any additional software on the Cygwin/X side and everything is still secured over SSH:
cygwin$ ssh -X home
home$ x11vnc -display :0 &
home$ xtightvncviewer localhost:0
Solution 2
This is similar to, though not an exact duplicate of, question 11623. Moving applications between X displays is possible; have a look at xmove, guievict, or xpra.
Solution 3
This can be done with x11clone:
windows$ ssh -X home
home$ x11clone :0
x11clone is available from https://github.com/x11clone/x11clone .
Related videos on Youtube
Matthew
Recent graduate with B.Seng degree. Working for IBM while maintaining small projects, like http://canadiandreamhouses.ca and http://schedulecourses.com.
Updated on September 18, 2022Comments
-
Matthew over 1 year
Scenario:
Linux mint is running on a machine at my home. I have some gui applications open on it.
I'm away from home but want to get at the open applications. I have cygwin/x and I know how to
ssh -X homecomputer
, and I could run gui applications from there, but I want to get at the windows that are already open on the local display.Is there a way to attach to the existing x session on linux without using extra software like VNC?
Thanks!
-
amphibient over 11 yearsjust curious, do you have a static IP for your home connection, which enables you to do this? i don't think i can see my home computer from the outside
-
Matthew over 11 years@foampile - My machine is always on so the IP address stays the same for the most part, and I set up port forwarding on my router so I can get into it.
-
ams over 11 years@foampile Look into dyndns.com (ignore the paid 'products' and just register an account at 'Sign In'). With that you can keep the same (free) DNS name even when your IP changes. Many routers support it, and if they don't I'm sure there's something you can have you machine do.
-
einpoklum over 8 yearsSo, what solution have you ended up using?
-
Matthew over 8 years@einpoklum I couldn't find anything without using extra software; ended up just using vnc.
-
-
Stéphane Chazelas over 11 yearsthough that will work, it will much more usable if you run the vnc client on the other computer, using ssh port-forwarding for the vnc port. (see also
vino
as an alternative to x11vnc which might even be enabled by default on mint).