Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 01-27-2009, 09:55 PM   #1
LQ Newbie
Registered: Sep 2006
Posts: 3

Rep: Reputation: 0
[SOLVED] VNC Over SSH | Linux laptop -> Linux SSH Server -> Windows VNC Server

I would like to do be able to tunnel VNC over SSH from my Linux laptop, through my Linux SSH server on the inside of my network, to my Windows VNC server.
__________                             _______________     _______________
| Linux  |     /---------\             | Linux SSH   |     |Windows VNC  |
| Laptop |     |Internet |    ROUTER   |  Server     |     | Server      |
|        |     \---------/             ||     ||
|________|                             |_____________|     |_____________|
Great artwork, I know.

I have the SSH port opened from my router to the SSH box and tunnel all of my HTTP traffic, but I don't want to open a VNC port and would prefer if it was encrypted through SSH.

I've racked my brain and RTFM trying to find this out, so I figured I'd post on here and see if anyone else has any ideas.

I'd prefer to use the openssh client in Ubuntu if at all possible.

So, can this be done?

Last edited by jakestaby; 01-28-2009 at 03:34 PM. Reason: Marking as solved
Old 01-27-2009, 10:24 PM   #2
Senior Member
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,821

Rep: Reputation: 121Reputation: 121
have you considered OpenVPN? I could make this a lot easier.

I use ipcop for a firewall and there is a OpenVPN plugin available. It took about less than an hour to install and setup and it works flawlessly. I can be pretty much anywhere and access my home network.
Old 01-27-2009, 10:29 PM   #3
ne pas
Registered: Jul 2008
Posts: 55

Rep: Reputation: 23
ssh -L [<local-address>:]<local-port>:<target-host>:<target-port> -l <login-name> <host>

ssh -L localhost:5901: -l jakestaby
Old 01-28-2009, 03:33 PM   #4
LQ Newbie
Registered: Sep 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Originally Posted by ne pas View Post
ssh -L [<local-address>:]<local-port>:<target-host>:<target-port> -l <login-name> <host>

ssh -L localhost:5901: -l jakestaby
You're the man! I adjusted it according to the external IP address instead of and connected to localhost:5901 and just like that I was in.

Thanks a ton!


client, linux, ssh, tunnel, vnc, windows

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
VNC over SSH. Windows client - Linux Server c_mitulescu Linux - Networking 30 05-21-2007 12:20 AM
How to use VNC to log into Linux PC from a Windows PC using SSH purplehaze5775 Linux - Software 1 11-19-2006 05:35 PM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 01:06 AM
Activating VNC-server from putty (ssh) bulls_i Linux - Networking 4 10-21-2005 08:52 PM > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration