constellation/image/base/mkosi.skeleton/usr/lib/systemd/system/create-host-ssh-key.service

10 lines
211 B
Desktop File

[Unit]
Description=Create a host SSH key
Before=network-pre.target
[Service]
Type=oneshot
ExecStart=/bin/bash -c "ssh-keygen -t ecdsa -q -N '' -f /run/ssh_host_ecdsa_key"
[Install]
WantedBy=network-pre.target