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

Wikipedia mentions that VNC is insecure here and SSH manual also has something about XY -flags. Which one should you really use to share the window manager?

By Unix, I mean that I don't use Windows but Debian and iPad -- but try to keep answers generic, I think platfrom -independent question.

share|improve this question
up vote 2 down vote accepted

You should use port forwarding with VNC and ssh. Say, you have a vncserver with display :1 created at target host, then use:

ssh -L5901: user@host

You also may add -N option to ssh if you need not a text-mode session

and then

vncviewer localhost:1

The port to be used at server side to connect is 5900 + <display number>

share|improve this answer
What is VNC really? For what it was developed for? Window-manager -sharing? Why is it insecure? Can you hit the insecurity if you tunnel the VNC -client with SSH? +1 for your input already. – hhh Oct 2 '12 at 16:53
Originally it was developed by AT&T, if I am not mistaken, for the remote server management. Then they decided that it's a really nice thing to share with others, so it was never on sale as I remember. It is insecure when used alone as 1) developers did not put the effort into strong authentication; 2) the data transferred is not encrypted, so someone may eavesdrop that you are doing. When you run it tunel'ed with SSH the communications are going through encrypted channel. The SSH role in this case is data protection. – Serge Oct 2 '12 at 17:13

You must log in to answer this question.

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