Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can work with "ssh -X user@ip" on my remote clients so everything is setup OK.

But what I'd really want to achieve is not to have a "new" desktop through ssh, but really take over the screen. So I need to see what is on the display at that moment.

Can this be done with ssh?

Thanks a lot, Frank

share|improve this question
Do you mean like using a VNC? – Moz Morris Mar 27 '12 at 10:01
indeed vnc without using vnc ;-) – Frank Mar 27 '12 at 10:29
Don't know if this helps you Frank, but you can do VNC over SSH. I can show you an example if it helps? – Moz Morris Mar 28 '12 at 8:41
think SSH is not the correct way to do this. will indeed use VNC or Remote Desktop – Frank Mar 28 '12 at 12:31
up vote 0 down vote accepted

You need x11vnc - a software that "exports" your actual (real) X display over VNC protocol: You can connect to remote machine using the -L option of SSH to forward VNC port to your machine and execute x11vnc. So you can execute a VNC viewer in your machine to connect to VNC server through a secure connection. Execute it in your machine:

# creates port forward and starts x11vnc
ssh -L 5900:localhost:5900 -N -f user@remote-machine x11vnc

# starts VNC client
xvncviewer localhost::5900
share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .