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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
07-03-2003, 03:33 PM
|
#1
|
Member
Registered: Jul 2003
Distribution: Ubuntu
Posts: 142
Rep:
|
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 03:42 PM.
|
|
|
07-03-2003, 04:13 PM
|
#2
|
Member
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225
Rep:
|
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.
|
|
|
07-12-2003, 08:06 AM
|
#3
|
Member
Registered: Jul 2003
Distribution: Ubuntu
Posts: 142
Original Poster
Rep:
|
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.
|
|
|
07-12-2003, 08:43 AM
|
#4
|
Member
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225
Rep:
|
you are welcome 
|
|
|
07-12-2003, 08:57 AM
|
#5
|
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:
|
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.
|
|
|
All times are GMT -5. The time now is 04:11 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|