Basic server security
Server security
Securing SSH
-
Change SSH port
nano /etc/ssh/sshd_config # Port 22 → Port 2222 systemctl restart sshd -
Disable root login
PermitRootLogin no -
SSH keys only
PasswordAuthentication no
Firewall
apt install ufw
ufw allow 2222/tcp
ufw allow 80/tcp
ufw allow 443/tcp
ufw enable
Fail2ban
apt install fail2ban
systemctl enable fail2ban
Updates
apt update && apt upgrade -y
Need help?
We're here for you! Running into issues or have questions? Our support team is happy to help you personally. Drop us a message through the ticket system - we usually respond within a few hours and love helping you find the best solution.
Was dit artikel nuttig?
0 van 0 vonden dit nuttig