LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 07-13-2007, 06:47 PM   #1
babag
Member
 
Registered: Aug 2003
Posts: 368

Rep: Reputation: 30
linux to xp ssh/vnc noob tunnel confusion


ok. this is officially making me crazy. followed this guide:

http://www.allthingsmarked.com/2006/...vnc-tunneling/

have tested as per its instructions on the xp machine (server)(the one i want
to control from a remote location). worked fine.

have installed cygwin, sshd, tightvncserver on the server machine.
all seem to work fine.

have putty and tightvnc on my laptop.

can open putty and make a connection to the server xp box
which is a compaq machine, account is 'compaq_owner'.

when i do so i'm in a console on my linux laptop logged in to
the xp machine's cygwin home directory for 'compaq_owner.'

if i try to run vncviewer i get an error that:

-bash: vncviewer: command not found

don't know if it's installed in cygwin, how to install it in cygwin,
if it needs to be installed in cygwin, or if it's accessible from my
laptop's console screen if it's not in cygwin. the cygwin login from
my laptop's console seems to only show me the cygwin directories.

my understanding is this:

i need sshd running on the server (xp) box
this is done through cygwin, where i installed the sshd and enabled
it as an xp service.
i need the tightvnc server running on the xp box
i need putty on my linux laptop to establish a tunnel to the xp box.
i need tightvnc on the linux laptop to make the connection through the
tunnel and display the desktop.

i've done all that and cannot seem to connect. i can make a connection
from behind my router, through the lan, by using a 192.168 address but
this is not utilizing the tunnel.

am i correct that i'm supposed to connect using putty, then, once
logged in, start a vncviewer from that same login console screen? in
other words, open a console by connecting with putty, login in that
console, then, still in that console, start a vncviewer?

if that's correct, i can't do that as i get the bash error above.

how do i run a vncviewer like this? how do i install one if i need to?
can the vncserver that's running, albeit not inside cygwin, be used
for this purpose or do i need a separate viewer? if i can use something
not in the cygwin directories, how do i access them since my login seems
to restrict me to the cygwin directories.

the other scenario is this: i'm able to open tightvnc on the laptop.
if i give it the 192.168 lan address of the xp box, i'm immediately
presented a password request and, once entered, the desktop appears
right away. this tells me i can make a connection directly, just not
via ssh.

i can also port forward port 5900 on the router, enter the external ip
address for my dsl connection and get straight to the xp box via tightvnc
which i take as an implication that i coulld get to it from outside the
lan if i left the port open and forwarded.

so, i can get to the xp box in at least 3 ways, ssh via putty, tightvnc
via lan address, tightvnc via external address. why can't i get a
connection of tightvnc via ssh? my guess is it's something simple that's
assumed in the guides that any idiot like me would never miss. well,
guess what. i missed it and it's driving me crazy.

firewalls are open as appropriate.

what have i got wrong here and how do i fix it? i'm so close.

thanks,
BabaG
 
Old 07-14-2007, 12:41 AM   #2
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
i've made an .odg file to illustrate all of my setup procedures
and settings but can't see how i can post or attach it here. it
might make figuring out where i've gone wrong clearer if sojeone
can point me to how to put it up here. also have it as pdf (64kb).

thanks,
BabaG

Last edited by babag; 07-14-2007 at 12:45 AM.
 
Old 07-14-2007, 11:29 AM   #3
babag
Member
 
Registered: Aug 2003
Posts: 368

Original Poster
Rep: Reputation: 30
new info. the laptop is dual boot with vista. installed putty
and tightvncviewer in vista and used same config. brings up
the remote server desktop right away using 127.0.0.1 as the
address in viewer. i'm wondering if there's something wrong
with the viewer setup in linux install. understood there will
be differences between linux and vista versions of software
but, while putty looks exactly the same in linux and vista,
the viewer is completely different.


distro is mandriva 2007.1 64. there is no menu to open the
viewer specifically, i have to use 'vncviewer' from the
console. in vista viewer is in the menu. also, when the
viewer opens in vista there are multiple buttons in the
gui, things like an options button. there is nothing in
the linux viewer, just a small window that says 'vnc' above
a text entry box for the ip or server name. does this seem
right? never having seen the viewer anywhere i wouldn't
know.

thanks,
BabaG
 
  


Reply


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 SSH tunnel firewall problem bitpail Linux - Networking 2 11-02-2006 08:37 AM
setting up ssh tunnel for vnc jr0 Linux - Networking 3 10-22-2005 11:38 AM
SSH tunnel reversed for VNC...Possible? silence Linux - Networking 1 07-22-2004 09:42 AM
[ Real NooB Inside ] VNC SSH - How to configure it ?? Slammy Linux - Networking 5 09-26-2003 12:17 PM
VNC and SSH Tunnel Syncrm Linux - General 13 04-06-2003 04:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:10 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration