Red Hat Topics - sshd hosts.deny

This is Interesting: Free IT Magazines  
Home > Archive > Red Hat Topics > May 2006 > sshd hosts.deny





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author sshd hosts.deny
brinda

2006-05-02, 1:13 pm

Hi

I am using /etc/hosts.deny to restrict access to my machine. My
/etc/hosts.deny says
ALL: ALL
sshd: ALL

My /etc/hosts.allow has a list of machines taht are allowed to access
my machine via sshd.
sshd : Machine IP

I find that I am able to log on from machines which are not in
/etc/hosts.allow.

I am not able to figure out what the problem could be - any help would
be appreciated.

I am running a Redhat AS release 4 with the 2.6.9 kernel.

My sshd is compiled with libwrap - I checked by doing an ldd
/usr/sbin/sshd and it shows up linked to /usr/lib64/libwrap.so.0

Thanks
Brinda

Jan Gerrit Kootstra

2006-05-02, 7:13 pm

brinda wrote:
> Hi
>
> I am using /etc/hosts.deny to restrict access to my machine. My
> /etc/hosts.deny says
> ALL: ALL
> sshd: ALL
>
> My /etc/hosts.allow has a list of machines taht are allowed to access
> my machine via sshd.
> sshd : Machine IP
>
> I find that I am able to log on from machines which are not in
> /etc/hosts.allow.
>
> I am not able to figure out what the problem could be - any help would
> be appreciated.
>
> I am running a Redhat AS release 4 with the 2.6.9 kernel.
>
> My sshd is compiled with libwrap - I checked by doing an ldd
> /usr/sbin/sshd and it shows up linked to /usr/lib64/libwrap.so.0
>
> Thanks
> Brinda
>


Brinda why use these two lines in /etc/hosts.deny
ALL: ALL
sshd: ALL

I would try only
ALL: ALL


Kind regards,


Jan Gerrit Kootstra
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com