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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2069041

Title:
  Changing Port in sshd_config and restarting ssh.service without effect

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2069041/+subscriptions


-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to