From owner-freebsd-questions Wed Dec 12 15:46:33 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail.27in.tv (roc-66-24-112-7.rochester.rr.com [66.24.112.7]) by hub.freebsd.org (Postfix) with ESMTP id A3CA337B417 for ; Wed, 12 Dec 2001 15:46:29 -0800 (PST) Received: (from root@localhost) by mail.27in.tv (8.11.6/8.11.6) id fBCNkT378124 for freebsd-questions@freebsd.org; Wed, 12 Dec 2001 18:46:29 -0500 (EST) (envelope-from cjm2@earthling.net) Received: from maxpower (trilluser@maxpower.lan.27in.tv [10.0.0.250]) by mail.27in.tv (8.11.6/8.11.6av) with SMTP id fBCNkRP78110 for ; Wed, 12 Dec 2001 18:46:28 -0500 (EST) (envelope-from cjm2@earthling.net) From: "C J Michaels" To: "freebsd-questions" Subject: RE: /etc/hosts.allow cant block Date: Wed, 12 Dec 2001 18:47:31 -0500 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Importance: Normal In-Reply-To: X-Virus-Scanned: by AMaViS perl-11 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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