vyos-build/data/live-build-config/hooks/live/100-remove-dropbear-keys.chroot
Daniil Baturin 452b17eaca hooks: T7217: remove Dropbear SSH host keys
that may be generated by postinstall scripts
to prevent accidental use of non-unique keys
baked into images
2025-03-17 17:58:33 +00:00

8 lines
179 B
Bash

#!/bin/sh
# Delete Dropbear SSH keys that might be generated
# by postinst scripts
# to prevent non-unique keys from appearing in images
rm -f /etc/dropbear/dropbear_*_host_key