You have full root or Administrator access, so your server's security is in your hands. A compromised server that sends spam, attacks others or hosts malware breaches our Acceptable Use Policy even if you didn't intend it, and we may suspend or isolate it until it's cleaned up. These habits prevent most problems.
Lock down access
- Linux: log in with SSH keys and disable password login over SSH. See Add and use SSH keys.
- Windows: change the initial Administrator password, keep Network Level Authentication on and restrict Remote Desktop to your IP addresses. See Windows Server first steps.
- Use long, unique passwords stored in a password manager, and never reuse your client area password.
- Use a regular user with sudo for daily work on Linux.
Keep software updated
Install security updates promptly. On Linux you can apply them automatically:
# Debian / Ubuntu
apt install unattended-upgrades
dpkg-reconfigure -plow unattended-upgrades
# AlmaLinux / Rocky Linux
dnf install dnf-automatic
systemctl enable --now dnf-automatic-install.timer
On Windows, keep Windows Update switched on.
Reduce what's exposed
- Only your forwarded ports reach your server from the internet, and our network doesn't filter what comes in on them, so run a firewall and open only the ports you need. See Configure a firewall on your server.
- List listening services with
ss -tlnpand remove or stop anything you don't use. - Bind databases and admin tools to
127.0.0.1, and reach them over an SSH tunnel. - Never run open proxies or open DNS resolvers; they're abused quickly and aren't allowed.
- Tools such as fail2ban can block addresses after repeated failed logins.
Protect your client area account
- Use a strong, unique password and keep your email address current, since we send important notices there.
- Never share your private SSH keys or passwords.
Watch for warning signs
Unexpected CPU load, unusual traffic in your usage graphs, unknown processes or logins you don't recognize (check with last) can all indicate a compromise.
If your server is compromised
- Take it offline: shut it down or block its services with your firewall.
- Copy the data you need (not programs or scripts, which may be infected).
- Reinstall the operating system from the client area.
- Change every password and replace every key that was on the server.
- Fix the cause, such as an outdated application or weak password, before restoring your data.
If Automatic backups is on, you can instead restore a backup from before the compromise, but only if you're sure that it's clean: attackers often get in days before they're noticed. Afterwards, still change every password and fix the cause.
Keep backups off the server, so a compromise never costs you your data. Automatic backups are stored outside your server, so an attacker on the server can't delete them, but anyone who gets into your client area account can; protect it with a strong, unique password. See Backups are your responsibility.