fixe aria-setup for ssh keys generation

This commit is contained in:
duffyduck 2026-03-15 23:05:56 +01:00
parent 75882545c8
commit b3c87ad7b7
1 changed files with 6 additions and 5 deletions

View File

@ -110,11 +110,12 @@ SSHEOF
chmod 644 "$SSH_DIR/id_ed25519.pub" chmod 644 "$SSH_DIR/id_ed25519.pub"
chmod 644 "$SSH_DIR/config" chmod 644 "$SSH_DIR/config"
echo " Key generiert." echo " Key generiert."
echo "" # Public Key direkt in root's authorized_keys eintragen (Script laeuft als root auf der VM)
echo " >>> ARIA's Public Key in root's authorized_keys auf der VM eintragen:" mkdir -p /root/.ssh
echo " cat $SSH_DIR/id_ed25519.pub >> /root/.ssh/authorized_keys" chmod 700 /root/.ssh
echo "" cat "$SSH_DIR/id_ed25519.pub" >> /root/.ssh/authorized_keys
read -p " Enter druecken wenn erledigt..." chmod 600 /root/.ssh/authorized_keys
echo " Public Key in /root/.ssh/authorized_keys eingetragen."
else else
echo " Key existiert bereits." echo " Key existiert bereits."
fi fi