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