Compare commits
2 Commits
a3cba0c244
...
86a28cc558
| Author | SHA256 | Date | |
|---|---|---|---|
|
86a28cc558
|
|||
|
65258f93ba
|
@@ -41,8 +41,8 @@ dropbear_setup() {
|
||||
### Prepare strong dropbear host keys
|
||||
rm -f "${TARGET}"/etc/dropbear/initramfs/dropbear*key*
|
||||
|
||||
chroot_exec "${TARGET}" /usr/bin/dropbearkey -t rsa -s 4096 -f /etc/dropbear/initramfs/dropbear_rsa_host_key
|
||||
chroot_exec "${TARGET}" /usr/bin/dropbearkey -t ed25519 -f /etc/dropbear/initramfs/dropbear_ed25519_host_key
|
||||
chroot_exec "${TARGET}" /usr/bin/dropbearkey -t rsa -s 4096 -f /etc/dropbear/initramfs/dropbear_rsa_host_key -C "root@${VAR_FINAL_FQDN}"
|
||||
chroot_exec "${TARGET}" /usr/bin/dropbearkey -t ed25519 -f /etc/dropbear/initramfs/dropbear_ed25519_host_key -C "root@${VAR_FINAL_FQDN}"
|
||||
|
||||
chmod 0600 "${TARGET}"/etc/dropbear/initramfs/dropbear*key*
|
||||
chown root:root "${TARGET}"/etc/dropbear/initramfs/dropbear*key*
|
||||
|
||||
Reference in New Issue
Block a user