sshd and create-host-ssh-key service on node

This commit is contained in:
miampf 2024-12-06 11:55:57 +01:00
parent acc5a84f3f
commit c35d7f2157
No known key found for this signature in database
GPG Key ID: EF039364B5B6886C
2 changed files with 3 additions and 3 deletions

View File

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