Changing the Port directive in sshd_config and restarting ssh.service is without effect, sshd keeps listening to port 22.
Also mentioned in https://discourse.ubuntu.com/t/sshd-now-uses-socket-based-activation-ubuntu-22-10-and-later/30189/32
Steps to reproduce: 1. Install Ubuntu 24.04 LTS 2. Change Port directive in /etc/ssh/sshd_config to Port 2233 3. Restart ssh.service 4. Observe sshd still listening to port 22
Expected behaviour: sshd changes port to 2233
Actual behaviour: sshd keeps listening to port 22
Changing the Port directive in sshd_config and restarting ssh.service is without effect, sshd keeps listening to port 22.
Also mentioned in https:/ /discourse. ubuntu. com/t/sshd- now-uses- socket- based-activatio n-ubuntu- 22-10-and- later/30189/ 32
Steps to reproduce: sshd_config to Port 2233
1. Install Ubuntu 24.04 LTS
2. Change Port directive in /etc/ssh/
3. Restart ssh.service
4. Observe sshd still listening to port 22
Expected behaviour: sshd changes port to 2233
Actual behaviour: sshd keeps listening to port 22