sshd config and creation of create-host-ssh-key service

This commit is contained in:
miampf 2024-12-05 15:23:27 +01:00
parent 50778e3360
commit 20ecae4e36
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C
2 changed files with 11 additions and 0 deletions
image/base/mkosi.skeleton
etc/ssh
usr/lib/systemd/system

@ -0,0 +1 @@
HostKey /run/ssh_host_ecdsa_key

@ -0,0 +1,10 @@
[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