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,19 +53,10 @@ installation_ssh() {
|
|||||||
|
|
||||||
rm -rf "${TARGET}"/etc/ssh/ssh_host_*key*
|
rm -rf "${TARGET}"/etc/ssh/ssh_host_*key*
|
||||||
|
|
||||||
if [[ -f "${TARGET}/etc/dropbear/initramfs/dropbear_rsa_host_key" ]]; then
|
# 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)"
|
||||||
cp -a "${TARGET}/etc/dropbear/initramfs/dropbear_ed25519_host_key" "${TARGET}/etc/ssh/ssh_host_ed25519_key"
|
# shellcheck disable=SC2312
|
||||||
cp -a "${TARGET}/etc/dropbear/initramfs/dropbear_rsa_host_key" "${TARGET}/etc/ssh/ssh_host_rsa_key"
|
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)"
|
||||||
|
|
||||||
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"
|
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/sshd_config" "${TARGET}/root/.ciss/cdi/backup/etc/ssh/sshd_config.bak"
|
||||||
|
|||||||
Reference in New Issue
Block a user