Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

Is it possible to bind VNC server to a open SSH tunnel?

I have a tablet that has initiated a reverse ssh tunnel to my server. This works fine over port 8080.

I need to now bind to this port from my local machine. It looks like Ubuntu has some "remote desktop viewier" that has ssh built in capabilities so I assume the only thing I need to do now is figure out how to bind the tablets VNCserver to the open SSH tunnel.

Is this possible?


share|improve this question
up vote 1 down vote accepted

There are any number of online guides to tunneling vnc.

Normally, the tunnel would be set up with something like 'ssh -L 5901:localhost:5901 remotehost', though it can be set up from the remote host instead. With it in place, it's just running 'vncviewer localhost:1' instead of 'vncviewer remosthost:1'.

Vnc has assumptions about what the port numbers are...5901 corresponds to display :1, etc. Local vnc client will expect the near end to be a workable port number, and the remote vnc server will likewise expect the remote port to be usable.

Unless you mean 'ssh remotehost -p 8080' gets you a working shell. In that case, the '-L' options can possibly be tacked on the end of the '-p' options, to establish a second/separate connection just for vnc, using the first one to channel the authentication of setting it up.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.