LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 01-27-2009, 08:55 PM   #1
jakestaby
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.
Code:
__________                             _______________     _______________
| Linux  |     /---------\             | Linux SSH   |     |Windows VNC  |
| Laptop |     |Internet |    ROUTER   |  Server     |     | Server      |
|        |     \---------/             |192.168.1.175|     |192.168.1.101|
|________|                             |_____________|     |_____________|
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 02:34 PM. Reason: Marking as solved
 
Old 01-27-2009, 09:24 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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, 09:29 PM   #3
ne pas
Member
 
Registered: Jul 2008
Posts: 55

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

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

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

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

Thanks a ton!
 
  


Reply

Tags
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-20-2007 11:20 PM
How to use VNC to log into Linux PC from a Windows PC using SSH purplehaze5775 Linux - Software 1 11-19-2006 04:35 PM
windows vnc client and linux vnc server problem tungaw2001 Linux - Software 8 06-17-2006 12:06 AM
Activating VNC-server from putty (ssh) bulls_i Linux - Networking 4 10-21-2005 07:52 PM


All times are GMT -5. The time now is 11:34 AM.

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