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

14 lines
352 B
SYSTEMD
Raw Normal View History

[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