Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 12 Dec 2001 18:47:31 -0500
From:      "C J Michaels" <cjm2@earthling.net>
To:        "freebsd-questions" <freebsd-questions@freebsd.org>
Subject:   RE: /etc/hosts.allow cant block
Message-ID:  <DJEFKJJHCIONPELDCGACAEJACAAA.cjm2@earthling.net>
In-Reply-To: <Pine.GSO.4.31.0112071207120.11244-100000@mail.ilrt.bris.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
Just for "shits and giggles" I tested this both with sshd all upper case and
all lower case and both worked.

Make an /etc/hosts.allow with one single line:

sshd : ALL : deny

and work it from there, as others have suggested, there may be other lines
that are superceeding this one.  Also, it's been my experience that things
work better when the colons have spaces on each side of them.  (as opposed
to sshd:all:deny).

Hope this helps,
--Chris

-----Original Message-----
From: owner-freebsd-questions@FreeBSD.ORG
[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Jan Grant
Sent: Friday, December 07, 2001 7:08 AM
To: Henry smith
Cc: freebsd-questions
Subject: Re: /etc/hosts.allow cant block


On Thu, 6 Dec 2001, Henry smith wrote:

> I put:
>
> SSHD: ALL : DENY
>
> on my /etc/hosts.allow
>
> but I can still login into my server using SSH.
>
> Anybody know what is the problem ?

Does

sshd : ALL : DENY

work?

--
jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/
Tel +44(0)117 9287088 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk
Leverage that synergy! Ooh yeah, looking good! Now stretch - and relax.


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?DJEFKJJHCIONPELDCGACAEJACAAA.cjm2>