diff --git a/sshd.service b/sshd.service index 094eaa0..6348bc1 100644 --- a/sshd.service +++ b/sshd.service @@ -8,6 +8,8 @@ ExecStartPre=/usr/sbin/sshd-keygen ExecStart=/usr/sbin/sshd -D $OPTIONS ExecReload=/bin/kill -HUP $MAINPID KillMode=process +Restart=on-failure +RestartSec=42s [Install] WantedBy=multi-user.target