CSIT-156: DPDK support for Nested VM image
[csit.git] / resources / tools / disk-image-builder / nested / image-patches / 05-ssh-hostkeys
1 #!/bin/sh
2
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.
6
7 sudo mkdir -m 0775 -p etc/ssh
8 for a in rsa ecdsa ed25519 dsa
9 do
10   sudo ssh-keygen -f etc/ssh/ssh_host_${a}_key -N "" -t ${a}
11 done