Use unique, strong passwords (16+ characters, mixed case, numbers, symbols) for:
Use a password manager such as Bitwarden or 1Password.
Enable 2FA on DirectAdmin: Your Settings → Two-Factor Authentication → Enable.
Update WordPress, plugins, and themes regularly. Outdated software is the #1 cause of website compromises.
| Type | Permission |
|---|---|
| Directories | 755 |
| PHP / HTML files | 644 |
wp-config.php |
640 |
Fix via SSH:
find public_html -type d -exec chmod 755 {} \;
find public_html -type f -exec chmod 644 {} \;
chmod 640 public_html/wp-config.php
# Generate key pair locally
ssh-keygen -t ed25519 -C "your@email.com"
# Copy public key to server
ssh-copy-id -i ~/.ssh/id_ed25519.pub username@your-server.com
Contact support to disable password-based SSH login after setting up key auth.