add ssh key

This commit is contained in:
cercatrova21 2024-02-14 14:51:25 +01:00
parent d2fe7e9c66
commit ec93597993

View File

@ -7,6 +7,7 @@ echo 'sudo apt-get update && sudo apt-get upgrade -y' >> /usr/local/bin/updater.
chmod 0755 /usr/local/bin/updater.sh chmod 0755 /usr/local/bin/updater.sh
printf 'Wie heisst der User?? ' printf 'Wie heisst der User?? '
read answer read user
sudo usermod -aG staff $answer sudo usermod -aG staff $user
echo 'ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQChKZFAUnZpCkiGNvLomOyLSKFaCuTtc0L4MeYCdYKb9se3o0ThQp56B+w8KUB//lsCO2U7msIsPzDB66c5zIa6zS1+gf2+aWcw8ebFsqjeZNoCtEOfr00N2ZgNwnPQnljnHmau453Xj8AgD2SkEhgdDgyzrKL3icwCATiF5RCcnItF3RD2mxH4e0MZtAFMjCCtBB58CUVa9LGkTQQpmkadrYREYh21Mxk/sQ9RguHmUHsD2zliZScZWbzIHyWXJ/5eNITeaTM1o0k3J7U8xGoFuurhcSo6xQqCF/aQZU79i2bzyHBxVtXTQ6S4OHqbUsQPgIgJ+qZqIySi0uoGu0wcUDapiPfL/dzQttvAV/qBA6c+F723rH/WMexe6pUkjused1soZlD4VxA0Tafc3iXTwsgnuKkK4ny8F7FmN/9L+POVbqPwJjDaF34ns2VBlRKxM3lgOQGTHu1MmQ437r5aqOb90ThjZpmzOyOeI8DyxfW8vdwzi9dM1HSPEr1E6MU= root@Admin' >> /home/$user/.ssh/authorized_keys