From owner-freebsd-questions@FreeBSD.ORG Thu Mar 31 14:58:45 2005 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 7881716A4D8 for ; Thu, 31 Mar 2005 14:58:45 +0000 (GMT) Received: from catflap.slightlystrange.org (cpc2-cmbg1-3-0-cust94.cmbg.cable.ntl.com [213.107.104.94]) by mx1.FreeBSD.org (Postfix) with ESMTP id D265A43D49 for ; Thu, 31 Mar 2005 14:58:42 +0000 (GMT) (envelope-from danielby@slightlystrange.org) Received: from danielby by catflap.slightlystrange.org with local (Exim 4.50 (FreeBSD)) id 1DH184-000AU7-Oe for freebsd-questions@freebsd.org; Thu, 31 Mar 2005 15:58:40 +0100 Date: Thu, 31 Mar 2005 15:58:40 +0100 From: Daniel Bye To: freebsd-questions@freebsd.org Message-ID: <20050331145840.GA99504@catflap.slightlystrange.org> Mail-Followup-To: freebsd-questions@freebsd.org References: <14C964392E81224099A3DE0666C6A6C5AFFDFE@blue.bodycareint.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="pf9I7BMVVzbSWLtt" Content-Disposition: inline In-Reply-To: <14C964392E81224099A3DE0666C6A6C5AFFDFE@blue.bodycareint.com> User-Agent: Mutt/1.4.2.1i Subject: Re: sshd listening on more than one port. X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Daniel Bye List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 31 Mar 2005 14:58:45 -0000 --pf9I7BMVVzbSWLtt Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Mar 31, 2005 at 11:29:29AM +0100, Mick Walker wrote: > Hello, >=20 > I am wanting to know if it is possible to enabled the sshd to listen on > more than one port, without having to spawn another instance of the > server itself. > If it is possible does anyone have any idea how I could accomplish this. Yes, it is possible - this is from man sshd_config: Port Specifies the port number that sshd listens on. The default is 22. Multiple options of this type are permitted. See also ListenAddress. I have just tested it - your sshd_config needs to include something like this: Port 22 Port 2222 etc. It works just fine: # sockstat -4l | grep sshd root sshd 38948 3 tcp4 *:2222 *:* root sshd 38948 4 tcp4 *:22 *:* HTH Dan --=20 Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3B9D 8BBB EB03 BA83 5DB4 3B88 86FC F03A 90A1 BE8F _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ --pf9I7BMVVzbSWLtt Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCTBAghvzwOpChvo8RAmKZAKCMUWKSGXcWyK+DTts1EGXhntiDrgCg2ZNB n1R2nAhoDHG5s4J5yTynzBc= =m3LO -----END PGP SIGNATURE----- --pf9I7BMVVzbSWLtt--