From owner-freebsd-questions@FreeBSD.ORG Mon Feb 12 21:28:00 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id CD5E516A400 for ; Mon, 12 Feb 2007 21:28:00 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from mail-out3.apple.com (mail-out3.apple.com [17.254.13.22]) by mx1.freebsd.org (Postfix) with ESMTP id BA3CE13C494 for ; Mon, 12 Feb 2007 21:28:00 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from relay8.apple.com (a17-128-113-38.apple.com [17.128.113.38]) by mail-out3.apple.com (8.13.8/8.13.8) with ESMTP id l1CLRwD0027391; Mon, 12 Feb 2007 13:27:58 -0800 (PST) Received: from relay8.apple.com (unknown [127.0.0.1]) by relay8.apple.com (Symantec Mail Security) with ESMTP id C814840024; Mon, 12 Feb 2007 13:27:58 -0800 (PST) X-AuditID: 11807126-9b7c5bb00000685d-d4-45d0dbde4b7c In-Reply-To: <45CEC7A4.7030802@ephgroup.com> References: <45CEC7A4.7030802@ephgroup.com> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <1B0CF7A0-1448-4CF6-8DCB-9D5AFF09FDE6@mac.com> Content-Transfer-Encoding: 7bit From: Chuck Swiger Date: Mon, 12 Feb 2007 13:27:53 -0800 To: Dave Carrera X-Mailer: Apple Mail (2.752.2) X-Brightmail-Tracker: AAAAAA== Cc: freebsd-questions@freebsd.org Subject: Re: Onpening and Closing ports 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: Mon, 12 Feb 2007 21:28:00 -0000 On Feb 10, 2007, at 11:37 PM, Dave Carrera wrote: > Had a little nasty person trying to break my sshd on port 22. > > I need to change and open a new port for sshd but i do not know how. > > Can one of you kind people help me with this please If you use good passwords, the SSH dictionary attacks are not a great concern. However, you can pass sshd the "-p 2222" flag to change the port from the default of 22 to (for example) 2222. To make this change permanent, add: sshd_flags="-p 2222" ...to /etc/rc.conf. -- -Chuck