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 08-12-2006, 12:48 AM   #1
nickj6282
Member
 
Registered: Mar 2006
Location: Fond du Lac, Wisconsin, USA
Distribution: Debian
Posts: 51

Rep: Reputation: 15
SSH forward from a Windows machine to a Linux machine isn't working


Hello all,

I have a SuSE 10.1 machine with a number of private IP addresses which is connected to the internet via a Windows Server 2003 machine. Basically, the Windows box has an external interface and an internal interface and acts as the NAT router for the LAN. I set up a port forward from the external interface on the Windows box to the Linux machine, but I can't connect to it.

When I try to connect from OSX, it just times out. If I run dmesg | tail this is what I get:

Code:
susebox:/etc/ssh # dmesg | tail
martian source 192.168.200.20 from <my home IP address>, on dev eth0
ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
martian source 192.168.200.20 from <my home IP address>, on dev eth0
ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
martian source 192.168.200.20 from <my home IP address>, on dev eth0
ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
martian source 192.168.200.20 from <my home IP address>, on dev eth0
ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
martian source 192.168.200.20 from <my home IP address>, on dev eth0
ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
So as you can see, I'm getting through to the box, but it's silently ignoring me. If I check /var/log/messages, this is what I see:

Code:
susebox:/etc/ssh # tail /var/log/messages
Aug 12 00:34:31 susebox kernel: martian source 192.168.200.20 from <my home IP address>, on dev eth0
Aug 12 00:34:31 susebox kernel: ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
Aug 12 00:34:43 susebox kernel: martian source 192.168.200.20 from <my home IP address>, on dev eth0
Aug 12 00:34:43 susebox kernel: ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
Aug 12 00:35:07 susebox kernel: martian source 192.168.200.20 from <my home IP address>, on dev eth0
Aug 12 00:35:07 susebox kernel: ll header: 00:60:08:cf:14:89:00:02:55:fc:29:ed:08:00
Aug 12 00:37:40 susebox smbd[23009]: [2006/08/12 00:37:40, 0] printing/print_cups.c:cups_cache_reload(85)
Aug 12 00:37:40 susebox smbd[23009]:   Unable to connect to CUPS server localhost - Connection refused
Aug 12 00:37:40 susebox smbd[23009]: [2006/08/12 00:37:40, 0] printing/print_cups.c:cups_cache_reload(85)
Aug 12 00:37:40 susebox smbd[23009]:   Unable to connect to CUPS server localhost - Connection refused
I read somewhere else that this problem might be caused by multiple ethernet cards in one machine, but this machine has only eth0. Any suggestions anyone?

Thanks,
-Nick
 
Old 08-12-2006, 09:59 PM   #2
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Just to make sure of some things are correctly setup.

Windows is doing Nat
Windows port forward is setup
Firewall on windows has the external IP port open

Linux box IP port is opened through firewall

Are you using keys or passwords?
Have you connected from the windows machine to the linux box?

Brian1
 
Old 08-13-2006, 01:47 AM   #3
nickj6282
Member
 
Registered: Mar 2006
Location: Fond du Lac, Wisconsin, USA
Distribution: Debian
Posts: 51

Original Poster
Rep: Reputation: 15
Yes.
Yes.
Yes.

The port that SSH listens on is open on the SuSE firewall. That same port is open on the firewall of the Windows box and is forwarded to the Linux box. The presence of my home IP address in /var/log/messages confirms that I am indeed getting through. I'm using passwords, and yes, I can putty from the Windows machine to the Linux machine. I just can't directly ssh from home (250 miles away) to the linux machine via the port forward on the Windows box. It times out. Must be some configuration that's telling it my home IP address is bad, but I can't figure out where to make the change.

Thanks,
-Nick
 
Old 08-13-2006, 02:47 PM   #4
Brian1
LQ Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 65
Not sure about the configuration.
Post contents of /etc/ssh/sshd_config

One thing I would try as a try if the system can be down. Get hold of one of those store bought routers and configure it to take the place of the windows box. Then setup portforwarding and see if you can get in that way. If so then an issue on the Windows box. If still no go then I would lean towards the linux box as the issue. Then have a friend or someone at home try to connect from the outside.

Check out this post on sshd setup. Might have missed something. http://www.suso.org/docs/shell/ssh.sdf


Brian1
 
  


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
how to watch linux client machine desktop(activities) from windows machine deepak rawat Linux - Networking 7 07-03-2006 04:59 PM
how to shutdown,restart and log off windows machine remotely through a linux machine deepak rawat Fedora 1 05-23-2006 01:25 AM
sharing internet from a windows 98 machine to a Red Hat Linux machine ritwiksolutions Linux - Newbie 7 03-14-2006 10:20 AM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 10:45 AM
copy from windows machine to a linux machine s_deepblue Linux - Networking 3 03-12-2005 01:43 PM

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

All times are GMT -5. The time now is 06:59 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
Open Source Consulting | Domain Registration