Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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.
Could anybody tell me what the necessary and sufficient conditions are for a PC running RedHat 9 to accept ssh (scp etc.) connections? My box is connected to a local gateway and thus I set "no firewall" through redhat-config-securitylevel, yet I get a "Connection refused" (port 22) if I try to ssh it from other machines in the same network (ping works).
I didn't have this problem on another machine, on which I installed RedHat 9 from scratch; on the problematic one I upgraded a non-networked RedHat 7.3, so I believe that must be be related to the problem.
I set up the firewall on the other box using redhat-config-securitylevel, and I marked the ethernet interface going to this box as a `trusted device', specifically allowing SSH connections.
The hosts.deny file is empty, the hosts.allow file has ALL:ALL in it.
On the computer your trying to ssh from can you ssh to other boxes besides the one the doesnt work? If you cant test it maybe try killing the firewall. Run iptables -L to make sure there are no rules left and everything is set to accept. Then try to connect to the box. If all that doesnt work I'm out of idea's.
> On the computer your trying to ssh from can you ssh to other boxes
> besides the one the doesnt work?
Sorry, I forgot to tell you before: YES.
I don't know much about iptables, here is the output of iptables -L:
Chain INPUT (policy ACCEPT)
target prot opt source destination
RH-Lokkit-0-50-INPUT all -- anywhere anywhere
thank you for your help. I just found the problem: there was a file /etc/sysconfig/ipchains with stuff in it, which I commented out, and now everything is fine. Isn't it a bug, by the way, that redhat-config-securitylevel does not delete or rename that file when one sets "no firewall"? And/or shouldn't it disable the ipchains services when one does not want a firewall?
You would think so. If you want to run a firewall I would suggest learning iptables. The redhat gui tools are good but they prevent you from really know whats going on behind the scenes.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.