constellation/image/base/mkosi.skeleton/usr/lib/systemd/system/create-host-ssh-key.service
2025-01-21 11:43:39 +01:00

10 lines
204 B
Desktop File

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