can login to ssh via local network, but not outside
Linux - SecurityThis forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.
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.
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.
can login to ssh via local network, but not outside
I am having a wierd problem: I am trying to allow access to ssh on my server which is behind a router firewall. I have the router forwarding the port to my machine, and I have the daemon running. I can ssh from any machine on the local network behind the router, but if I try to ssh into the router's outside ip address, I get a connection refused. I went to shields up, and it says that the correct port is open, so It seems to be a problem somewhere in my system. I have checked hosts.allow, and hosts.deny, and they are both all commented out. I have ran iptables -L, and have no chains listed under input, forward, or output.
I tried some other servers, and it seems that my machine is rejecting all communication outside of my LAN. I have no idea where to look from here. Any ideas?
I am using debian unstable.
hi there,
ok, you asked for ideas.. i give you one... maybe it is not a solution..
could it be that your ISP block the port 22 ?? this happens sometimes.. did you try making the sshd listen other port??
regards,
slackie1000
I've tried it on a different port, with no success. I've also tried other services on different ports, and they do not work as well (outside my lan). There seems to be a residual setting somewhere in my system that is blocking access to my server.
hi there,
sorry man. i am not specialist in the area. it was a try.
this sounds weird. you mean that even http services - ex. port 80 - don't work?
maybe something with your iptables/firewall - from the router? can you access it?
did you setup port forwarding in your router: usually you need to forward the port, ex. 22, from your external IP(the one provided by your ISP) to the local IP(the one in your LAN)... this can also be the reason..none of the ports are forwarded..
don't know mate...
hope some of the security gurus can drop a light here...
regards,
slackie1000
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.