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