ssh connection refused mystery solved

I moved a vmware host into a different vlan and suddenly people could not connect to it from a special jump box that was created to access servers in that particular vlan.  I check a bunch of places that I could think of then asked my co-worker.

This is a centos 5.x linux server and we checked the following:

/etc/ssh/sshd_config
/etc/sysconfig/network-scripts-ifcfg-eth0
/etc/sysconfig/network
/etc/hosts
/etc/sysconfig/network-scripts/route-eth0/etc/hosts.allow

And finally found: /etc/hosts.deny which had a line that specified:

sshd : ALL EXCEPT 10.xxx.xx.x/255.xxx.xxx.xxx

We added an entry for the new subnet, saved and closed the file and voila.

Thanks to Rachael Stewart for finding this one.  It seems this is an older way of securing the server before they started using iptables.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s