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 c91a4a498c
commit 86fa03cbf3
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C
2 changed files with 11 additions and 0 deletions

View File

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

View File

@ -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