Every new VPS should be secured before it hosts production workloads.
Recommended first steps
- Update the operating system.
- Use strong passwords or SSH keys.
- Disable password SSH login if you can use keys safely.
- Enable a firewall.
- Only expose services you need.
- Install security updates regularly.
- Back up important data.
Ubuntu update example
sudo apt update
sudo apt upgrade
If you believe your server has been compromised, disconnect exposed services and contact support.