setting up ssh

Clyde E. Kunkel clydekunkel7734 at cox.net
Fri Aug 26 19:18:17 UTC 2011


On 08/26/2011 02:55 PM, Peter G. wrote:
> 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?
>
  I assume you have rebooted after changing firewall rules and/or issued:

# systemctl restart iptables.service

If so, then I dunno....

-- 
Regards,
OldFart



More information about the test mailing list