setting up ssh

Peter G. pgueckel at gmail.com
Fri Aug 26 18:55:02 UTC 2011


Michael Cronenworth wrote:

> # iptables -L | grep ssh
> ACCEPT     tcp  --  anywhere             anywhere            state NEW
> tcp dpt:ssh

You know, I just tried your command again, but this time without grepping, and 
I see that ssh is nowhere in the output, so how could grep ssh ever return 
anything?

But, when I examine /etc/sysconfig/iptables, I see:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT

Doesn't that mean that port 22 is open?

And if so, why does your command not show any output, while 
/etc/sysconfig/iptables would suggest that the port is opened?

Any yet, there is still no communication possible. What is wrong?



More information about the test mailing list