V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m25s
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m25s
Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
@@ -0,0 +1 @@
|
||||
SJF3kOdvm0o9xwT:VdmXE^2w^VTFJeJPdHkd7qNwQVf^7SDmcyZKjcfadS
|
||||
|
||||
@@ -53,20 +53,11 @@ installation_ssh() {
|
||||
|
||||
rm -rf "${TARGET}"/etc/ssh/ssh_host_*key*
|
||||
|
||||
if [[ -f "${TARGET}/etc/dropbear/initramfs/dropbear_rsa_host_key" ]]; then
|
||||
|
||||
cp -a "${TARGET}/etc/dropbear/initramfs/dropbear_ed25519_host_key" "${TARGET}/etc/ssh/ssh_host_ed25519_key"
|
||||
cp -a "${TARGET}/etc/dropbear/initramfs/dropbear_rsa_host_key" "${TARGET}/etc/ssh/ssh_host_rsa_key"
|
||||
|
||||
else
|
||||
|
||||
# shellcheck disable=SC2312
|
||||
chroot_exec "${TARGET}" ssh-keygen -o -N "" -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -C "root@${VAR_FINAL_FQDN}-$(date -I)"
|
||||
# shellcheck disable=SC2312
|
||||
chroot_exec "${TARGET}" ssh-keygen -o -N "" -t rsa -b 4096 -f /etc/ssh/ssh_host_rsa_key -C "root@${VAR_FINAL_FQDN}-$(date -I)"
|
||||
|
||||
fi
|
||||
|
||||
mkdir -p "${TARGET}/root/.ciss/cdi/backup/etc/ssh"
|
||||
cp "${TARGET}/etc/ssh/sshd_config" "${TARGET}/root/.ciss/cdi/backup/etc/ssh/sshd_config.bak"
|
||||
cp "${TARGET}/etc/ssh/ssh_config" "${TARGET}/root/.ciss/cdi/backup/etc/ssh/ssh_config.bak"
|
||||
|
||||
Reference in New Issue
Block a user