45467e4229
Move managing of SSH host keys into a dedicated element. Because glean doesn't generate SSH host keys anymore, we need to do it with a systemd script. This is already handled by CentOS / Fedora so we don't want to add it there. This was done to address the upstream bug in debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500192 Change-Id: I31ad667672e08350872db21a83445fe0aa7a4a39 Signed-off-by: Paul Belanger <pabelanger@redhat.com>
22 lines
688 B
Desktop File
22 lines
688 B
Desktop File
[Unit]
|
|
Description=OpenSSH Server Key Generation
|
|
Before=ssh.service
|
|
|
|
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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|