etc/systemd

This commit is contained in:
2025-10-02 10:24:06 +02:00
parent 28f06a5f24
commit f609100b7e
46 changed files with 1278 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
[Unit]
Description=Generate sshd host keys on first boot
ConditionFirstBoot=yes
ConditionPathIsReadWrite=/etc/ssh
ConditionPathIsSymbolicLink=!/etc/ssh
Before=ssh.service sshd.service sshd@.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=ssh-keygen -A
[Install]
WantedBy=ssh.service sshd.service sshd@.service ssh.socket