2016-07-26 14:01:58 -05:00
|
|
|
[Unit]
|
|
|
|
Description=OpenBSD Secure Shell server
|
|
|
|
After=network.target auditd.service
|
|
|
|
ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
EnvironmentFile=-/etc/default/ssh
|
|
|
|
ExecStartPre=-/usr/local/bin/host-ssh-keygen.sh
|
|
|
|
ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
KillMode=process
|
|
|
|
Restart=on-failure
|
2020-02-05 01:22:36 -06:00
|
|
|
RuntimeDirectory=sshd
|
|
|
|
RuntimeDirectoryMode=0755
|
2016-07-26 14:01:58 -05:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|
|
|
|
Alias=sshd.service
|