From owner-freebsd-questions@FreeBSD.ORG Tue Mar 9 11:08:56 2004 Return-Path: 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 0DD1916A4CE for ; Tue, 9 Mar 2004 11:08:56 -0800 (PST) Received: from destiny.chrononomicon.com (mail.chrononomicon.com [65.193.73.208]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1FA9743D45 for ; Tue, 9 Mar 2004 11:08:54 -0800 (PST) (envelope-from bsilver@chrononomicon.com) Received: from [IPv6:::1] (destiny.chrononomicon.com [192.168.1.42]) by destiny.chrononomicon.com (Postfix) with ESMTP id 16AA11FDFF for ; Tue, 9 Mar 2004 14:08:45 -0500 (EST) Mime-Version: 1.0 (Apple Message framework v612) In-Reply-To: <000001c40608$f5c59c10$117869a8@red> References: <000001c40608$f5c59c10$117869a8@red> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <2F3FDEBE-71FD-11D8-8002-000A956D2452@chrononomicon.com> Content-Transfer-Encoding: 7bit From: Bart Silverstrim Date: Tue, 9 Mar 2004 14:08:44 -0500 To: questions@FreeBSD.org X-Mailer: Apple Mail (2.612) Subject: Re: Moving SSH port off of port 22 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 09 Mar 2004 19:08:56 -0000 On Mar 9, 2004, at 2:01 PM, Jason Halbert wrote: > Hello All: > > I need some help moving SSH off of port 22, preferably onto port 23 and > disabling telnet. Can I do this just by changing something in > /etc/services or by means of a firewall? I have a firewall installed > on > the box and using NAT with ipfw. > If you just want to plain move the SSHD's listening port, there's a "port" directive in /etc/ssh/sshd_config (default is a commented Port 22) that you can change what port it listens to. Altering that and restarting the sshd process should have it listen to the new port. -Bart