summaryrefslogtreecommitdiff
path: root/sshd-keygen@.service
blob: f27f72981110abab3124ba6a25bc3378b5bc5264 (plain)
1
2
3
4
5
6
7
8
9
10
11
[Unit]
Description=OpenSSH %i Server Key Generation
ConditionFileNotEmpty=|!/etc/ssh/ssh_host_%i_key

[Service]
Type=oneshot
EnvironmentFile=-/etc/sysconfig/sshd
ExecStart=/usr/libexec/openssh/sshd-keygen %i

[Install]
WantedBy=sshd-keygen.target