LinuxQuestions.org
Visit Jeremy's Blog.
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 04-19-2011, 08:22 PM   #1
idx
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Rep: Reputation: 0
Help: Cannot access Linux Server behind the linksys router via ssh


Server details:
OS: Linux RedHat
DHCP: Static IP set to 192.168.1.101
sshd_config: Enabled for port 22 for ssh
Connected through wire to the Linksys router

Router:
Type: Linksys BEFW11S4
Port forwarding enabled for port 22 to IP 192.168.1.101

Client:
Windows 7
Interface: PuTTy
Host: 192.168.1.101 on port 22 through SSH

This always gives an error "connection timed out".

SSH directly on the local Linux works fine..

Seems basic but had been struggling over this for past 3 hours to no avail so thought of posting it to the experts..please help. Am I missing anything?

regards
Idx.
 
Old 04-20-2011, 12:29 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
Red Hat has the firewall enabled by default. Is port 22 configured as allowed on the server?
 
Old 04-21-2011, 07:54 AM   #3
idx
LQ Newbie
 
Registered: Apr 2011
Posts: 2

Original Poster
Rep: Reputation: 0
Well..I did configure the iptable to ACCEPT requests on port 22..is there anything more to thyat?
 
Old 04-21-2011, 11:17 AM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
That's all that's required. However, since you're having a problem, it's likely something very simple that's wrong.

Was the firewall change reloaded? The change doesn't take effect until iptables is reloaded.

Can you ssh from another machine on the same LAN? If so, that eliminates the firewall on the server and indicates a problem with the port-forward on the router. If not, the server firewall is still an issue.
 
Old 04-21-2011, 11:22 AM   #5
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Are you connecting from outside or inside your LAN?

Kind regards
 
  


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
I'm new to Linux and want Internet access using Linksys router and Belkin adapter teedub25 Linux - Newbie 1 02-02-2008 09:25 PM
Cannot access Linux server through Linksys WRT54GS router William1955 Linux - Hardware 5 11-04-2005 05:33 PM
Linksys cable router setup Linux box no net access Phebes Linux - Networking 19 09-17-2004 11:53 PM
unstable HTTP/SSH server with Linksys router hamish Linux - Networking 0 07-22-2004 01:45 PM

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

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