2011-10-11 01:56:11 +00:00
|
|
|
[Unit]
|
|
|
|
Description=OpenSSH server Key Generation
|
2013-09-13 09:35:45 +00:00
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub
|
2014-01-30 08:38:01 +00:00
|
|
|
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
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_key.pub
|
2013-09-13 09:35:45 +00:00
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
|
|
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub
|
2011-10-11 01:56:11 +00:00
|
|
|
|
|
|
|
[Service]
|
2011-10-12 12:33:18 +00:00
|
|
|
Type=oneshot
|
|
|
|
ExecStart=/usr/bin/ssh-keygen -A
|
2011-10-11 01:56:11 +00:00
|
|
|
RemainAfterExit=yes
|