From owner-freebsd-questions@FreeBSD.ORG Tue Sep 27 19:12:35 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F2FE016A41F for ; Tue, 27 Sep 2005 19:12:34 +0000 (GMT) (envelope-from mark@gaiahost.coop) Received: from biodiesel.gaiahost.coop (biodiesel.gaiahost.coop [64.95.78.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 19AC443D72 for ; Tue, 27 Sep 2005 19:12:30 +0000 (GMT) (envelope-from mark@gaiahost.coop) Received: from localhost (host-64-65-195-19.spr.choiceone.net [::ffff:64.65.195.19]) (AUTH: LOGIN mark@hubcapconsulting.com) by biodiesel.gaiahost.coop with esmtp; Tue, 27 Sep 2005 15:12:28 -0400 id 00254057.4339999E.0000402A Received: by localhost (sSMTP sendmail emulation); Tue, 27 Sep 2005 15:12:27 -0400 Date: Tue, 27 Sep 2005 15:12:26 -0400 From: Mark Bucciarelli To: freeBSD Message-ID: <20050927191226.GC3356@rabbit> Mail-Followup-To: freeBSD References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.1i Subject: Re: Limit client connections ssh X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Sep 2005 19:12:35 -0000 On Tue, Sep 27, 2005 at 02:27:26PM -0500, Efren Bravo wrote: > I'm using ssh to connect me to fBSD server, how can I limit the client > connections?, I mean, I only only that the server(ssh) accept incoming > connections from a specific IP or IPs range? You can restrict to a subset of your system users by using AllowUsers (or some such option) in /etc/ssh/sshd_conf. If you are using key authentication, you can associate IP's with each public key in the ~/.ssh/authorized_keys file. If you allow password authentication, you must use a firewall to restrict by IP. m