Knowledgebase

Your First Hour With a New VPS Print

  • vpsservermanagement, vps, password, security, hacked, backup, firewall, guide
  • 0

Do these before anything else.

THE ORDER

  1. Log in and change the root password to something long and unique.
  2. Create a non-root user with sudo privileges.
  3. Set up SSH key authentication for that user.
  4. Disable password authentication for SSH.
  5. Disable direct root login over SSH.
  6. Change the SSH port if you choose to.
  7. Configure the firewall, permitting only what you need.
  8. Apply all available system updates.
  9. Set the hostname and timezone.
  10. Configure automatic security updates, or a reminder to apply them.
  11. Set up backups.
  12. Set up basic monitoring.

WHY THIS ORDER

Automated attacks find new servers within minutes of them appearing online. A server with password authentication enabled and a weak root password is compromised quickly, sometimes before you have finished setting it up.

DO NOT PUT ANYTHING LIVE FIRST

The temptation is to install your application and secure the server later. Later frequently does not happen, and a compromise in the meantime costs far more than the hour.

IF YOU BOUGHT MANAGED

Confirm with us which of these we have done.


Was this answer helpful?
Back

Are you happy with your experience? Leave us a review on Trustpilot.


Trustpilot