The workarounds should perhaps be conditionalized to only take effect on Ubuntu, and the changes should probably be discussed with Debian in hopes they can be integrated there so that we do not need to carry a delta.
For now, I'm simply going to disable the test in question, since even with the workaround it'll probably require further testing and refinements, and leave the real fix to a future merge.
These links suggest alternative approaches to make this function properly in Ubuntu:
https:/ /discourse. ubuntu. com/t/sshd- now-uses- socket- based-activatio n-ubuntu- 22-10-and- later/30189 /askubuntu. com/questions/ 1439461/ ssh-default- port-not- changing- ubuntu- 22-10
https:/
The workarounds should perhaps be conditionalized to only take effect on Ubuntu, and the changes should probably be discussed with Debian in hopes they can be integrated there so that we do not need to carry a delta.
For now, I'm simply going to disable the test in question, since even with the workaround it'll probably require further testing and refinements, and leave the real fix to a future merge.