On Mon, Sep 30, 2013 at 11:27 PM, John McKelvey <jmmckel at gmail.com>
wrote:
> Hello,
>
> I have a CENTOS 5 box that can reach the internet and can ping to/from all
> windows system on my home network. The catch is that I can not connect to
> the box using SSH from any windows machine, though they can easily ping the
> linux box and vice-versa.
>
> Suggestion of a possible solution would be most appreciated.
>
> Many thanks!
>
>
others have mentioned it as well, it sounds to me like there's a local
firewall (probably iptables) running on the linux box. Although I thought
the default in the 5 series of redhat/centos was to leave port 22 open.
it could also be that you don't have the ssh daemon turned on/possibly even
installed (?)
I'd make sure you have ssh turned on (from the linux machine, ssh to
localhost, telnet localhost 22, ps -ef | grep sshd, service sshd status,
chkconfig --list | grep ssh )
if all that works and looks OK, then try turning off firewall (service
iptables stop)
then try to ssh in from your other machines
if that's ok, then back to the linux machine's console and do service
iptables start
iptables -I INPUT -s ${cdir of your lan[1]} -p tcp --dport 22 -j ACCEPT
service iptables save
and I'd think you should be set.
[1] if your LAN is 192.168.0.0 with a netmask of 255.255.255.0 the CDIR
would be 192.168.0.0/24, not sure how much you've dealt with that. googl
will be your friend if you have an odd netmask.
some of these options may be off, I don't use centos 5 much these days and
all I'm putting in here is from memory, so I might be missing some stuff,
but I think it's reasonably close.
--
Even the Magic 8 ball has an opinion on email clients: Outlook not so good.