Contents of /trunk/openssh/ssh-keygen.service
Parent Directory | Revision Log
Revision 2683 -
(show annotations)
(download)
Mon Aug 17 10:02:45 2015 UTC (9 years, 1 month ago) by niro
File size: 650 byte(s)
Mon Aug 17 10:02:45 2015 UTC (9 years, 1 month ago) by niro
File size: 650 byte(s)
-generate sshd keys oneshot to fix escaping issues with newer systemd
1 | [Unit] |
2 | Description=SSH Key Generation. |
3 | After=syslog.target |
4 | Before=sshd.service |
5 | ConditionPathExists=!/etc/ssh/ssh_host_key |
6 | ConditionPathExists=!/etc/ssh/ssh_host_key.pub |
7 | ConditionPathExists=!/etc/ssh/ssh_host_rsa_key |
8 | ConditionPathExists=!/etc/ssh/ssh_host_rsa_key.pub |
9 | ConditionPathExists=!/etc/ssh/ssh_host_dsa_key |
10 | ConditionPathExists=!/etc/ssh/ssh_host_dsa_key.pub |
11 | ConditionPathExists=!/etc/ssh/ssh_host_ecdsa_key |
12 | ConditionPathExists=!/etc/ssh/ssh_host_ecdsa_key.pub |
13 | ConditionPathExists=!/etc/ssh/ssh_host_ed25519_key |
14 | ConditionPathExists=!/etc/ssh/ssh_host_ed25519_key.pub |
15 | |
16 | [Service] |
17 | Type=oneshot |
18 | ExecStart=/usr/bin/ssh-keygen -A |
19 | RemainAfterExit=yes |