Security is not optional โ itโs your first layer of defense.
๐น Update System
sudo apt update && sudo apt upgrade -y
๐น Install Fail2Ban
sudo apt install fail2ban -y
๐น Enable Firewall
sudo ufw allow OpenSSH
sudo ufw enable
๐น Disable Root Login
/etc/ssh/sshd_config
Edit:
/etc/ssh/sshd_config
Set:
PermitRootLogin no
๐น Restart SSH
sudo systemctl restart ssh
Always use SSH keys instead of passwords.