1
0
Fork 0

Generate the default host keys for each of the key types

This commit is contained in:
Braiden Vasco 2017-07-03 13:37:59 +00:00
parent 76582f192b
commit 227deeb9df
2 changed files with 4 additions and 9 deletions

View file

@ -324,15 +324,6 @@ chroot_rootfs << EOF
setupcon --force --save-only -v
EOF
##
# ?????
#
install -m 644 files/regenerate_ssh_host_keys.service "$ROOTFS_DIR/lib/systemd/system/"
chroot_rootfs 'systemctl enable regenerate_ssh_host_keys'
rm -f "$ROOTFS_DIR/etc/ssh/ssh_host_*_key*"
##
# Wi-Fi firmware and tools.
#

View file

@ -14,4 +14,8 @@
# Increase root file system size to take all available space.
resize2fs "$(findmnt / -o source -n)"
# Generate the default host keys for each of the key types
# for which host keys do not exist (rsa1, rsa, dsa, ecdsa and ed25519).
ssh-keygen -A
exit 0