Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#44691 - sshd.socket's port isn't updated on sshd_config port change
Attached to Project:
Arch Linux
Opened by David John (x89) - Wednesday, 22 April 2015, 16:20 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 22 April 2015, 17:34 GMT
Opened by David John (x89) - Wednesday, 22 April 2015, 16:20 GMT
Last edited by Gaetan Bisson (vesath) - Wednesday, 22 April 2015, 17:34 GMT
|
DetailsDescription: If you change Port from 22 to something else in /etc/ssh/sshd_config the change isn't reflected in the systemd socket.
Steps to reproduce: Change port in sshd_config, stop sshd.service, start sshd.socket, attempt to connect. |
This task depends upon
It'd be possible on sshd.service start/stop.
Is there a way to add to the sshd.service unit file a dependency update / script call on case of a changed file? I'm not sure if there is?
I'll look more into doing it in a 100% systemd way later on, a bit busy at the moment.
Even if systemd has a way to parse sshd_config and use the resulting Port variable in sshd.socket, how should we handle the case of other configuration settings from sshd_config? I really doubt we want to go down that road.
But yeah I agree it's probably a bad path to go down.