2012-06-24 21:34:29 +08:00
|
|
|
[Unit]
|
|
|
|
Description=SSH Key Generation
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_key.pub
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub
|
2014-10-08 23:55:50 +08:00
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key.pub
|
2012-06-24 21:34:29 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
ExecStart=/usr/bin/ssh-keygen -A
|
|
|
|
Type=oneshot
|
|
|
|
RemainAfterExit=yes
|