Linux - NewbieThis 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.
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.
Hello, trying to SSH in to my fedora 9 computer and am having trouble. My Linux computer is on a private (NAT) network behind a Linksys. I have a few other computers on this network, all windows boxes. From any of the Windows boxes I can SSH (using Putty) in to my Linux box.
When I try to SSH to my Linux box from work or my friends house, I am not able to, the connection times out. I have forwarded all TCP traffic on port 22 from the WAN interface on my router to the private IP of my Linux box. This is the only setting I know of to allow external SSH access to my network. Can anyone offer further troubleshooting?
it sounds like there is possibly some firewall config as well as the NAT config, but a good point to start (in my world at least) is to run tcpdump or wireshark on your ssh server and watch what packets hit it. if your internet connection is working from the box, then there's no reason everything on that box shouldn't be fine so must on the router. also check out portforward.com to step you through config for your router (probably)
Try ssh -vvv user@YOUR.PUB.LIC.IP ssh will report what it is trying to do, what is happening, and (probably) why it is failing.
See man ssh for more details.
Thanks for the feedback. I will run Wire Shark on my Linux box to see if I am even hitting it. I can't imagine needing a guide for the firewall, I simply allowed all WAN facing TCP traffic on port 23 to go directly to the private NAT IP of my Linux box. Maybe the firewall is glitching? Does OpenSSH inherently deny public IP address? I've also allowed all TCP traffic on port 23 in IPtables.
When I am connecting over the internet I am putting the public IP address in Putty, not the private.
Anyways, I just SSH'ed from my Linux box here at work and suprisingly enough, it worked! The only thing I've done since I last tried is reboot the SSH Linux server at my home. Apparently something in the reboot fixed the problem.
Thanks all for your help!
** Good to see you are still around Acid, you were helping me back in 2002 when I was trying to setup a Slackware/Samba setup. Cheers!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.