SSH working locally but not remotely on Red Hat Enterprise Linux
Red HatThis forum is for the discussion of Red Hat Linux.
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.
SSH working locally but not remotely on Red Hat Enterprise Linux
Hello Everyone,
I am new to linux and I am trying install red hat enterprise onto a spare dell power edge server that I have and enable a remote SSH connection to the box.
This is a fresh install of red hat enterprise and the SSH doesn't appear to be working remotely. I am attempting to connect directly from my laptop so the issue doesn't lay with port forwarding on my router.
I am using NMAP to port scan the box and it is showing that no ports are open at all, even after disabling iptables completely.
When I run service --status-all
I can see the Open SSH daemon is running and when I try SSH local to the machine 'ssh root@localhost' it lets me log in.
I have added to the host.allow file the text SSHD= ALL and checked that there is nothing in the host.deny.
The port scan shows port 22 is closed and thus when I try to SSH using putty from my laptop, the connection is refused.
Any help / suggestions would be greatly appreciated!
I am also now running a web server with the same issue.. So it doesn't look like it affecting the SSH service only. I also opened NC to test only port 999 and wasn't able to view it as open with the remote port scanner.
-A RH-Firewall-1-INPUT -p tcp -m tcp --dport 22 -j ACCEPT was already in /etc/sysconfig/iptables.
cat you telnet to the box with port 22 to make sure is your service runing and try it with both hostname and ip address. it sound like having problem reaching the box, and check your ip address config
Last edited by saifelyzal; 01-06-2012 at 12: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.