aedd00
[Unit]
aedd00
Description=OpenSSH %i Server Key Generation
aedd00
ConditionFileNotEmpty=|!/etc/ssh/ssh_host_%i_key
aedd00
aedd00
[Service]
aedd00
Type=oneshot
aedd00
EnvironmentFile=-/etc/sysconfig/sshd
aedd00
ExecStart=/usr/libexec/openssh/sshd-keygen %i
aedd00
aedd00
[Install]
aedd00
WantedBy=sshd-keygen.target