sshdgenkeys.service 527 B

123456789101112131415
  1. [Unit]
  2. Description=SSH Key Generation
  3. ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
  4. ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub
  5. ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key
  6. ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub
  7. ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key
  8. ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key.pub
  9. ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
  10. ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub
  11. [Service]
  12. ExecStart=/usr/bin/ssh-keygen -A
  13. Type=oneshot
  14. RemainAfterExit=yes