From owner-freebsd-security@FreeBSD.ORG Thu Oct 7 18:23:37 2004 Return-Path: Delivered-To: freebsd-security@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BDDC416A4CE for ; Thu, 7 Oct 2004 18:23:37 +0000 (GMT) Received: from mx7.uniserve.ca (mx7.uniserve.ca [216.113.192.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B8A743D2F for ; Thu, 7 Oct 2004 18:23:37 +0000 (GMT) (envelope-from rjwsys@uniserve.com) Received: from rob.office.uniserve.ca ([204.244.161.211] helo=rob) by mx7.uniserve.ca with smtp (Exim 4.22) id 1CFdEc-000Jar-35; Thu, 07 Oct 2004 11:43:26 -0700 Message-ID: <022e01c4ac9a$be186f70$d3a1f4cc@rob> From: "Robert Westendorp" To: "Mark Ogden" , "Volker Kindermann" References: <20041007195417.430a8b5c@ariel.office.volker.de> <20041007180630.GA25130@yem.eng.utah.edu> Date: Thu, 7 Oct 2004 11:23:27 -0700 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Scanner: OK. Scanned. cc: freebsd-security@freebsd.org Subject: Re: Question restricting ssh access for some users only X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Security issues [members-only posting] List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Oct 2004 18:23:37 -0000 User the AllowGroups .. and have all the users who should have SSH access in that particular group .. perhaps be default have an SSH users group be the SSHable group. ----- Original Message ----- From: "Mark Ogden" To: "Volker Kindermann" Cc: Sent: Thursday, October 07, 2004 11:06 AM Subject: Re: Question restricting ssh access for some users only > Volker Kindermann on Thu, Oct 07, 2004 at 07:54:17PM +0200 wrote: > > Hi Jim, > > > > > > > I've used ssh as a secure telnet up to now but done little else with > > > it. The FreeBSD machines I look after on our internet-facing network > > > all have one account which I connect to for administration. I've set > > > up /etc/hosts.allow on all the machines to only allow ssh from a > > > limited internal network range. > > > > > > Now I want to create a new account on one machine which will be > > > accessible from the Internet as a whole, to be used for tunnelling of > > > SMTP and POP3. I can't predict what the client IP address will be so I > > > will have to remove the hosts.allow restriction. > > > > have you considered the "AllowGroups" and "AllowUsers" directives of > > sshd_config? They should provide exact the functionality that you want. > > But what if you have 1000 users? From my understanding you would have > to add all users to the AllowUsers list. > > -Mark > > > > -volker > _______________________________________________ > freebsd-security@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-security > To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"