bootstrap-vz/bootstrapvz/common/assets/systemd/ssh-generate-hostkeys.service

17 lines
497 B
Desktop File

# This file was created by bootstrap-vz.
# See https://github.com/andsens/bootstrap-vz/blob/master/LICENSE for
# legal notices and disclaimers.
[Unit]
Description=OpenBSD Secure Shell server Host Key Generation
ConditionFileNotEmpty=|!/etc/ssh/ssh_host_ecdsa_key
ConditionFileNotEmpty=|!/etc/ssh/ssh_host_ed25519_key
ConditionFileNotEmpty=|!/etc/ssh/ssh_host_rsa_key
Before=ssh.service
[Service]
ExecStart=/usr/local/sbin/ssh-generate-hostkeys
Type=oneshot
[Install]
WantedBy=multi-user.target