Sécuriser votre VPS
1. Mises à jour
apt update && apt upgrade -y\napt install unattended-upgrades2. Créer un utilisateur non-root
adduser admin\nusermod -aG sudo admin3. Désactiver le login root SSH
Éditez /etc/ssh/sshd_config: PermitRootLogin no
4. Firewall UFW
ufw allow 22\nufw allow 80\nufw allow 443\nufw enable5. Fail2Ban
apt install fail2ban\nsystemctl enable fail2ban6. Clés SSH
Désactivez l'authentification par mot de passe: PasswordAuthentication no
Cet article vous a-t-il été utile?
Articles similaires