[Unit] Description=OpenSSH server daemon After=network.target ConditionKernelCommandLine=|ssh ConditionPathExists=|/storage/.cache/services/sshd.conf [Service] Restart=on-failure EnvironmentFile=-/storage/.cache/services/sshd.conf ExecStartPre=/usr/bin/ssh-keygen -A ExecStart=/usr/sbin/sshd -D $SSH_ARGS ExecReload=/bin/kill -HUP $MAINPID TimeoutStopSec=1s RestartSec=2 StartLimitInterval=0 [Install] WantedBy=multi-user.target