blob: de8be1579855b8b1bc6be4f56aa54fe53fc31cb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# Generate host keys here. This will speed up first boot time ever so slightly.
# It does however mean that keys are not unique across installations -- which
# shouldn't be an issue for our use case though.
sudo mkdir -m 0775 -p etc/ssh
for a in rsa ecdsa ed25519 dsa
do
sudo ssh-keygen -f etc/ssh/ssh_host_${a}_key -N "" -t ${a}
done
|