ssh-keygen.service 280 Bytes
Newer Older
Ansgar Burchardt's avatar
Ansgar Burchardt committed
1
2
3
4
5
6
7
8
9
10
11
12
[Unit]
Description=Generate SSH host keys
Documentation=man:ssh-keygen(1)
ConditionPathExists=!/etc/ssh/ssh_host_ed25519_key
Before=ssh.service

[Service]
ExecStart=/usr/bin/ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -t ed25519 -N ""
Type=oneshot

[Install]
WantedBy=ssh.service