mirror of
https://github.com/pygos/init.git
synced 2024-11-25 12:30:42 +01:00
bb16d1f1bf
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
14 lines
350 B
Text
14 lines
350 B
Text
description "OpenSSH server - generate host keys"
|
|
type wait
|
|
target boot
|
|
after network
|
|
tty /dev/null
|
|
exec {
|
|
mkdir -p "@ETCPATH@/ssh/"
|
|
|
|
ssh-keygen -f "@ETCPATH@/ssh/host_rsa_key" -N "" -t rsa
|
|
ssh-keygen -f "@ETCPATH@/ssh/host_ecdsa_key" -N "" -t ecdsa
|
|
ssh-keygen -f "@ETCPATH@/ssh/host_ed25519_key" -N "" -t ed25519
|
|
|
|
service disable sshd_keygen
|
|
}
|