LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-31-2007, 09:43 PM   #1
bobber
LQ Newbie
 
Registered: Sep 2005
Posts: 22

Rep: Reputation: 15
another vnc ssh question


sorry but im pulling my hair out. very new to linux so bear with me. i want to tunnel vnc thru ssh from my pclos box (behind a router) to my parents windowsxp box (also behind a router). i know i have to forward port 22 on my router and my parents router as well as software firewalls. now it gets hazy. whats next. which service do i start first or does it matter. what settings on putty on their end do i need, and how do i start a session on my end. do they have to start ssh or vnc on their end too.
do i need to open any other ports on the computer (5901).



thanks
 
Old 11-01-2007, 08:41 AM   #2
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
You'll need to setup ssh "tunnels" on your linux box that will take traffic on port 5901 and send it through to the appropriate port on the windows XP machine. A command like the following should do it:

yourmachine> ssh -X -f username@machine2 -N -L 5901:yourmachine:5901

Then, you would fire up vncviewer:

yourmachine> vncviewer localhost:5901

As long as you've got vncserver running on your parents' box, this should do the trick

See HERE for more info

Last edited by pnellesen; 11-01-2007 at 09:07 AM.
 
Old 11-02-2007, 09:45 AM   #3
Quigi
Member
 
Registered: Mar 2003
Location: Cambridge, MA, USA
Distribution: Ubuntu (Dapper and Heron)
Posts: 377

Rep: Reputation: 31
Quote:
Originally Posted by bobber View Post
i know i have to forward port 22 on my router and my parents router
Only on your parents', assuming you are initiating the ssh session. (BTW, their machine must also be running sshd. Which I found easiest under Win/XP by using cygwin.)
 
Old 11-02-2007, 06:54 PM   #4
bobber
LQ Newbie
 
Registered: Sep 2005
Posts: 22

Original Poster
Rep: Reputation: 15
i need cygwin on my parents machine. they have to have ssh server running as well as vnc server running. do they need to start their services first before i try to get into their side?? i already have ssh and a vnc viewer on my end, they need a vnc server and ssh server on their end. what about the settings. will the default settings of cygwin be ok.
 
Old 11-02-2007, 09:03 PM   #5
pnellesen
Member
 
Registered: Oct 2004
Location: Missouri, USA
Distribution: Slackware 12.2, Xubuntu 9.10
Posts: 371

Rep: Reputation: 31
Yeah, they'll need their ssh server as well as vncserver running before you can connect. I've no experience w/Cygwin, however.
 
  


Reply



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 ieuuk Linux - Networking 18 01-18-2006 07:11 AM
vnc with ssh Paxmaster Linux - Networking 1 03-07-2005 09:05 PM
VNC over SSH Question mcmanta Linux - Newbie 5 05-06-2004 01:59 PM
SSH and VNC bandersen Linux - Newbie 5 03-29-2004 05:53 AM
VNC on SSH??? Jerry78 Linux - Newbie 3 07-17-2003 03:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration