Generate the default host keys for each of the key types
This commit is contained in:
parent
76582f192b
commit
227deeb9df
2 changed files with 4 additions and 9 deletions
9
build.sh
9
build.sh
|
@ -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.
|
||||
#
|
||||
|
|
|
@ -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
|
||||
|
|
Reference in a new issue