VNC over SSH with XY flags?

1

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.

hhh

Posted 2012-10-02T15:33:51.117

Reputation: 673

Answers

2

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:127.0.0.1:5901 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>

Serge

Posted 2012-10-02T15:33:51.117

Reputation: 2 585

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 – 2012-10-02T16:53:30.940

1Originally 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 – 2012-10-02T17:13:19.243