From fa6de19f0f5ffd654ff28acdbc8b417b1c58a297 Mon Sep 17 00:00:00 2001 From: Beth Parker Date: Sun, 23 Mar 2025 07:02:59 -0500 Subject: [PATCH] prevent garbage from being added to known_hosts --- scripts/create.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/create.sh b/scripts/create.sh index debeb6e..b75eb1a 100644 --- a/scripts/create.sh +++ b/scripts/create.sh @@ -96,7 +96,8 @@ users: sed -i "s/REPLACE_SIZE/${rs}/g" /tmp/user_configuration.json ssh-keygen -R ${lname}.actcur.com - ssh-keyscan ${lname}.actcur.com >> ~/.ssh/known_hosts + ssh-keyscan ${lname}.actcur.com | grep -v "#" | grep "ecdsa-sha2-nistp256" >> ~/.ssh/known_hosts + scp -i $ssh_key_dir/id_arch_builder /tmp/user_configuration.json ${lname}.actcur.com:/tmp/user_configuration.json ssh -i $ssh_key_dir/id_arch_builder ${lname}.actcur.com "systemctl mask reflector.service; echo 'Server = https://pkg.actcur.com/repo/archlinux/\$repo/os/\$arch' > /etc/pacman.d/mirrorlist" ssh -i $ssh_key_dir/id_arch_builder ${lname}.actcur.com "archinstall --config /tmp/user_configuration.json --silent"