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