Date: Thu, 31 Mar 2005 15:58:40 +0100 From: Daniel Bye <freebsd-questions@slightlystrange.org> To: freebsd-questions@freebsd.org Subject: Re: sshd listening on more than one port. Message-ID: <20050331145840.GA99504@catflap.slightlystrange.org> In-Reply-To: <14C964392E81224099A3DE0666C6A6C5AFFDFE@blue.bodycareint.com> References: <14C964392E81224099A3DE0666C6A6C5AFFDFE@blue.bodycareint.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Thu, Mar 31, 2005 at 11:29:29AM +0100, Mick Walker wrote:
> Hello,
>
> 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
--
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 / \
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (FreeBSD)
iD8DBQFCTBAghvzwOpChvo8RAmKZAKCMUWKSGXcWyK+DTts1EGXhntiDrgCg2ZNB
n1R2nAhoDHG5s4J5yTynzBc=
=m3LO
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050331145840.GA99504>
