With 24.04 LTS, ssh is socket activated by default. The configuration for the socket is generated by reading the regular /etc/ssh/sshd_config (or /etc/ssh/sshd_config.d/ snippets), but the configuration needs to be reloaded. So, the steps for configuring a new port are:
# Add new port to /etc/ssh/sshd_config.d/port.conf
systemctl daemon-reload
systemctl restart ssh.socket
The key point being that a systemctl daemon-reload is needed.
With 24.04 LTS, ssh is socket activated by default. The configuration for the socket is generated by reading the regular /etc/ssh/ sshd_config (or /etc/ssh/ sshd_config. d/ snippets), but the configuration needs to be reloaded. So, the steps for configuring a new port are:
# Add new port to /etc/ssh/ sshd_config. d/port. conf
systemctl daemon-reload
systemctl restart ssh.socket
The key point being that a systemctl daemon-reload is needed.