[Bug 2468] Option to include external files to sshd_config

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Wed Oct 2 00:47:06 AEST 2019


https://bugzilla.mindrot.org/show_bug.cgi?id=2468

--- Comment #18 from Ricardo <bugzilla.mindrot at rbartels.de> ---
Added script implement desired behaviour on GNU LINUX using systemd.

systemd unit drop in:

sudo mkdir -m 755 -p "/etc/systemd/system/sshd.service.d/"
cat <<EOF >
/etc/systemd/system/sshd.service.d/50-compile-sshd-config.conf
[Service]
ExecStartPre=-/usr/local/bin/sshd_config_update
EOF
chmod 644
/etc/systemd/system/sshd.service.d/50-compile-sshd-config.conf
systemctl daemon-reload


Hope this workaround helps someone.

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list