openssh/sshd.service

20 lines
526 B
SYSTEMD
Raw Normal View History

2019-09-30 11:10:51 -04:00
[Unit]
Description=OpenSSH server daemon
Documentation=man:sshd(8) man:sshd_config(5)
After=network.target sshd-keygen.target
Wants=sshd-keygen.target
[Service]
Type=notify
EnvironmentFile=-/etc/crypto-policies/back-ends/opensshserver.config
2020-07-24 15:45:06 +08:00
EnvironmentFile=-/etc/sysconfig/sshd-permitrootlogin
2019-09-30 11:10:51 -04:00
EnvironmentFile=-/etc/sysconfig/sshd
2020-07-24 15:45:06 +08:00
ExecStart=/usr/sbin/sshd -D $OPTIONS $CRYPTO_POLICY $PERMITROOTLOGIN
2019-09-30 11:10:51 -04:00
ExecReload=/bin/kill -HUP $MAINPID
KillMode=process
Restart=on-failure
RestartSec=42s
[Install]
WantedBy=multi-user.target