LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 06-08-2009, 07:40 PM   #1
rick2009
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Rep: Reputation: 0
Running X windows in WinXP through two consecutive SSH connections?


Hi All,

At home, I have one Windows XP machine that can connect
to the Internet through the cable. As you guess, there
is a gateway router providing NAT. From the WinXP client,
I'd like to access to the linux machine that is connected
to a company network.

There is one big problem. I can not access that machine(LM1)
directly but indirectly through another machine. In fact,
there is one machine(LM2), which is only open to off
the organization access because of the security.
So, what I can do now first is to make SSH connection to LM2
and then make SSH connection to LM1 again. Unfortunately,
running text mode shell is not enought to meet what I want.

I'd like to run X applications such eclipse on LM1
while all displays are shown in my WinXP machine.

In WinXP machine, I usually use OpenCRT and/or X Manager,
and Ubuntu 9.04 is installed on LM2. For SSH, OpenSSH server
is installed and activated on LM2. So, inside a company network,
LM2 is accessbile through SSH. However, I can not touch
LM1 but this machine provides a remote access through SSH.

Please give me any ideas.

p.s) I wonder whether I can use FreeNX or any other tools for
my situation.

Last edited by rick2009; 06-08-2009 at 07:47 PM. Reason: additional info.
 
Old 06-09-2009, 06:33 PM   #2
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Rep: Reputation: 46
Question: can you do something like this.

I have 2 networks off my main network. Look like this.

cable modem > main linux firewall/nat-router > main network. off that > plastic box router making a testing network. off that > new linux firewall/dns/nat-router I am building (headless) > desktop.


I ssh connected to my laptop form the desktop, first ssh stop the headless router, second ssh stop main router third ssh stop laptop. but I the headless server does not have an x-server installed and I was unable to run a kwrite because of that.

Then I did skip the headless and ssh connect directly to my main router from the desktop and was able to run kwrite on the main router. Then from the main router I ssh to the laptop and am able to run kwrite.

True I am doing this with all linux systems but I see no reason it will not work with a win box in the loop but it must be running an X-server. Part of the secret is to make the connection with the proper switches in ssh. What I use is with root privilege
Quote:
ssh -XCl user-name xxx.xxx.xxx.xxx
I have to use ip's because part of my setup does not have name resolution set up, but if you do then it would be something like
Quote:
ssh -CX user-name@server.example
The -C switch turn on compression. The -X switch enables x fowarding. This DOES NOT set up any encryption. I would think you would want that because you would be coming in over the net. I am not familiar with hot to do that, but someone else hear should be able to help you with that, better yet try $ man ssh and the -c switch

I can't help with getting the win box setup to work correctly. I do have putty installed on an XP box and can ssh into the other hosts on my network but I have never played with getting an x-server setup in windows.

There is another option you might explore. That is using a vnc server. If you already have an x-session started on the linux box you can ssh into it and start the vnc-server and then use something like Ultra-vnc on windows to access it. Not sure about going through another box though never tried it. I am pretty sure that an x-session can be tunneled over ssh though.

Hope that helps.

I reserve the right to be wrong.
 
Old 06-10-2009, 10:40 AM   #3
rick2009
LQ Newbie
 
Registered: Jun 2009
Posts: 2

Original Poster
Rep: Reputation: 0
Thank you for the post.

I will try to use Xming to setup X-session
from WinPC to the linux server through
another intermediate linux server using SSH.

I will post if I get through it.

cheers,
 
Old 06-28-2009, 03:16 PM   #4
archtoad6
Senior Member
 
Registered: Oct 2004
Location: Houston, TX (usa)
Distribution: MEPIS, Debian, Knoppix,
Posts: 4,727
Blog Entries: 15

Rep: Reputation: 234Reputation: 234Reputation: 234
rick2009,

Any progress?


Both,

Don't forget: the 1st 's' in 'ssh' is for "secure" -- it's always encrypted.
 
  


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
free winxp openssh (beside f-secure ssh server & cygwin) to connect winxp from linux imnoob Linux - General 3 12-06-2007 12:26 PM
network my PC running Puppy with laptop running WinXP slowmovingman Linux - Networking 1 11-03-2006 06:07 PM
ssh and nfs connections refused by Linux host running RedHat 9.0 and having 2 NIC erinduffy Linux - Networking 1 01-21-2005 11:13 AM
How do I install Fedora on my comp running WinXP Pro, WinXP Home and Win2000 Server pureheartedsoul Linux - Newbie 3 03-30-2004 02:45 PM
Can I see ssh connections? bruno buys Linux - Networking 4 11-19-2003 02:46 PM

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

All times are GMT -5. The time now is 02:07 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