Knowledge Base
Keeping your VPS secure
Because a VPS is unmanaged, security is your job. A few steps cover most of the risk.
- Use SSH keys and turn off password logins, see Managing SSH keys on your VPS.
- Run a firewall and open only the ports you need, see Managing firewall rules on your VPS.
- Keep the system updated:
apt update && apt upgradeon Debian and Ubuntu, and Windows Update on Windows. - Do not work as root, see Managing users on your VPS.
- Use long, unique passwords, and change the default ones straight away.
- Install only what you need, and remove what you do not use.
- Take backups, see Creating a VPS backup.
- Watch for odd behaviour, such as unknown processes or high load, see Troubleshooting high resource usage on a VPS.
Our blog has a longer guide to securing a new VPS.