summaryrefslogtreecommitdiff
path: root/services/sshd_keygen.in
blob: 6425e63db25203c00d17e59856252ae69da5de11 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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
}