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

10 lines
234 B
Desktop File

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