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

10 lines
186 B
Desktop File

[Unit]
Description=Create a host SSH key
Before=sshd.service
[Service]
Type=oneshot
ExecStart=ssh-keygen -t ecdsa -q -N "" /run/ssh_host_ecdsa_key
[Install]
WantedBy=multi-user.target