sshd listening on more than one port.

jshamlet at comcast.net jshamlet at comcast.net
Thu Mar 31 09:43:47 PST 2005


> 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.
> 
> Thanks in advance.
> 
> Mick Walker

Yes, simply add additional Port lines to your sshd_config file and kill -HUP your sshd server.

For example, my ssh server listens on 22 & 23 because of the way I handle incoming NAT connections, so I have:

Port 22
Port 23

in my config file.

Regards,
Seth Henry


More information about the freebsd-questions mailing list