aetherscale

[unmaintained] code for a cloud provider tutorial
Log | Files | Refs | README | LICENSE

aetherscale-init-ssh-key.service (399B)


      1 [Unit]
      2 Description=Initialize SSH host keys for new VM
      3 ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
      4 ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
      5 ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key
      6 ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key
      7 Before=network-pre.target
      8 Wants=network-pre.target
      9 
     10 [Service]
     11 Type=oneshot
     12 ExecStart=/usr/bin/ssh-keygen -A
     13 
     14 [Install]
     15 WantedBy=multi-user.target