[Bug 2059872] Re: Unable to listen on port 22 if multiple Port= present in sshd configuration
Nick Rosbrook
2059872 at bugs.launchpad.net
Tue Apr 2 17:58:32 UTC 2024
** Changed in: openssh (Ubuntu)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openssh in Ubuntu.
https://bugs.launchpad.net/bugs/2059872
Title:
Unable to listen on port 22 if multiple Port= present in sshd
configuration
Status in openssh package in Ubuntu:
In Progress
Bug description:
Recently introduced sshd-socket-generator for socket activation in
openssh 1:9.6p1-3ubuntu3 has a bug when dealing with multiple Port or
ListenAddress entries in the sshd configuration.
If you have multiple Port or ListenAddress and one of them is for port
22, it just skips it.
To show it clearly, here is an example:
Port 22
Port 1024
It generates:
ListenStream=
ListenStream=1024
Now nothing is listening to port 22, hence breaking existing
configurations.
This was tested on 1:9.6p1-3ubuntu11.
The intention seems to be to not generate the drop-in if only port 22
is in use, but it does not account for the case of multiple Port or
ListenAddress where one of them is for port 22.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2059872/+subscriptions
More information about the foundations-bugs
mailing list