Compare commits

..

No commits in common. "7eeed4e4357320b638a39d1ef7218a67f86edecb" and "1a761fd17e02adab1bff8ce8989effde7a02f9cc" have entirely different histories.

3 changed files with 7 additions and 19 deletions

View file

@ -1,9 +0,0 @@
# Further Reading #
* Admin guide: https://forgejo.org/docs/latest/admin/
* Arch notes: https://wiki.archlinux.org/title/Forgejo

View file

View file

@ -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