LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 07-03-2003, 04:33 PM   #1
Moses420ca
Member
 
Registered: Jul 2003
Distribution: Ubuntu
Posts: 142

Rep: Reputation: 15
ssh server from behind a router


I have openssh-server-3.5p1-7mdk.i586.rpm installed. This also came pre installed on my mandrake 9.1 box. I can ssh into my linux box from anywhere on my lan using putty. I can not ssh into my linux box from the Internet side of my d-link DI-604 router. I have a virtual server on the router listening on port 22 and forwarding it to my linux box using tcp/ip on port 22. The routers firewall is configured to allow this. As for the firewall on the linux box, I'm very sure it's disabled. As I am new to linux, this could be wrong. I'm wondering now if because the ip the client is connecting to and the ip of the ssh server host are different, if this messes up the encryption of ssh.


Also I tried putting my linux box in the dmz with no success.

Last edited by Moses420ca; 07-03-2003 at 04:42 PM.
 
Old 07-03-2003, 05:13 PM   #2
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
my initial guess is that you have a problem with your router config. If you can connect to your linux box on your lan, your router is connected to that lan, but you still can't connect from the internet, then my guess is port forwarding on the router is not working.

You could run a firewall test on your router to see if port 22 is open. Then do a tcpdump from your linux box. If port 22 is not open or you aren't getting anything from your router's ip on port 22 then your problem lies with the router.
 
Old 07-12-2003, 09:06 AM   #3
Moses420ca
Member
 
Registered: Jul 2003
Distribution: Ubuntu
Posts: 142

Original Poster
Rep: Reputation: 15
fixed.

It didn't take me this long to fix my problem, I just got around to it. My first try was to update the firmware on the router and it worked. SSH is now working fine. Thanks for your help mrtwice.
 
Old 07-12-2003, 09:43 AM   #4
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
you are welcome
 
Old 07-12-2003, 09:57 AM   #5
enigmasoldier
Member
 
Registered: Jul 2003
Location: Florence, Ky
Distribution: CentOS 3.3-4, OpenBSD 3.3, Fedora Core 4, Ubuntu, Novell Open Enterprise Server
Posts: 213

Rep: Reputation: 30
I don't mean to insult your intelligence, but are you using the public or private ip address on the lan to connect to the computer on the lan? Any IP addy that starts with 10. or 192. is a private IP addy. Private meaning that it is non-routable and any router will discard packets destined to those addresses. Make sure that you have a private and a public ip address or that your router will perform NAT. use google, you will find what you need.
 
  


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
ssh and router, I need help. babyboss Linux - Networking 4 09-22-2004 12:40 PM
unstable HTTP/SSH server with Linksys router hamish Linux - Networking 0 07-22-2004 02:45 PM
SSH , RH 9 and router weird_guy Linux - Networking 6 07-13-2003 10:17 PM
ssh behind a router The sakkie Linux - Networking 16 07-12-2003 05:48 AM
router, name server, web server, ssh, mailserver dilberim82 Linux - Security 9 07-26-2001 07:14 AM

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

All times are GMT -5. The time now is 02:23 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration