mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 19:14:37 +08:00
19 lines
549 B
SYSTEMD
19 lines
549 B
SYSTEMD
|
[Unit]
|
||
|
Description=SSH Key Generation
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_key
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_key.pub
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
|
||
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub
|
||
|
|
||
|
[Service]
|
||
|
ExecStart=/usr/bin/ssh-keygen -A
|
||
|
Type=oneshot
|
||
|
RemainAfterExit=yes
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|