Re: sshd listening on more than one port.
From: Daniel Bye (freebsd-questions_at_slightlystrange.org)
Date: 03/31/05
- Previous message: Monah Baki: "IPsec How-to"
- In reply to: Mick Walker: "sshd listening on more than one port."
- Next in thread: jshamlet_at_comcast.net: "RE: sshd listening on more than one port."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 31 Mar 2005 15:58:40 +0100 To: freebsd-questions@freebsd.org
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 / \
- application/pgp-signature attachment: stored
- Previous message: Monah Baki: "IPsec How-to"
- In reply to: Mick Walker: "sshd listening on more than one port."
- Next in thread: jshamlet_at_comcast.net: "RE: sshd listening on more than one port."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|