mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 18:47:14 +08:00
18 lines
619 B
Desktop File
18 lines
619 B
Desktop File
[Unit]
|
|
Description=SSH Key Generation
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_key
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_key.pub
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_rsa_key.pub
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_dsa_key.pub
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ecdsa_key.pub
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key
|
|
ConditionPathExists=|!/etc/ssh/ssh_host_ed25519_key.pub
|
|
|
|
[Service]
|
|
ExecStart=/usr/bin/ssh-keygen -A
|
|
Type=oneshot
|
|
RemainAfterExit=yes
|