diff --git a/autoremakekeys.sh b/autoremakekeys.sh index d57bdcd..82150ac 100644 --- a/autoremakekeys.sh +++ b/autoremakekeys.sh @@ -38,6 +38,6 @@ cat /.SSH/automated/pub/servers/id_ed25519.pub | tee /home/$USER/.ssh/authorized chmod 700 /home/$USER/.ssh chmod 600 /home/$USER/.ssh/id_ed25519 chmod 600 /home/$USER/.ssh/authorized_keys -chown admin -R /home/$USER/.ssh +chown $USER -R /home/$USER/.ssh systemctl restart sshd