diff --git a/doc/forgejo.md b/doc/forgejo.md deleted file mode 100644 index 9c1f6a1..0000000 --- a/doc/forgejo.md +++ /dev/null @@ -1,9 +0,0 @@ - - - -# Further Reading # - -* Admin guide: https://forgejo.org/docs/latest/admin/ - -* Arch notes: https://wiki.archlinux.org/title/Forgejo - diff --git a/doc/hosting_notes.md b/doc/hosting_notes.md deleted file mode 100644 index e69de29..0000000 diff --git a/infra/scripts/setup_machine.sh b/infra/scripts/setup_machine.sh index a853419..0278354 100644 --- a/infra/scripts/setup_machine.sh +++ b/infra/scripts/setup_machine.sh @@ -1,5 +1,9 @@ export MY_USER="my_user" +# Create non-root user +adduser $MY_USER +usermod -aG sudo $MY_USER + # Set up firewall ufw allow OpenSSH ufw enable @@ -10,17 +14,10 @@ ufw enable # PasswordAuthentication no # ChallengeResponseAuthentication no # UsePAM no - -# Create non-root user -adduser $MY_USER -usermod -aG sudo $MY_USER +# sudo systemctl restart ssh # Enable ssh login -rsync --archive --chown=$MY_USER:$MY_USER ~/.ssh /home/$MY_USER/.ssh +rsync --archive --chown=$MY_USER:$MY_USER ~/.ssh /home/$MY_USER # Fail2ban for SSH -apt install fail2ban - -# Restart ssh -sudo systemctl restart ssh - +apt install fail2ban \ No newline at end of file