CLOUD
Guides

VPS Management: The Basics You Must Know

CLOUD|September 9, 2025|4 min read|502 views
VPS Management: The Basics You Must Know

SSH, system updates, user management, firewall, resource monitoring — 10 essential VPS management skills. We explain each with commands.

What You Need to Know to Manage a VPS

Managing a VPS differs from shared hosting where everything is handled for you. With a VPS, you are responsible for the operating system, security, updates, backups, and performance monitoring. This guide covers the essentials to get you started.

Connecting to Your Server

SSH — The Essential Tool

SSH is the secure method for connecting to your server. After activating a VPS at CLOUD, you receive:

  • An IP address
  • A username (typically root)
  • A password or SSH key

Connecting from Linux/macOS:

  • Open Terminal and type: ssh root@your-IP-address
  • Enter your password when prompted

Connecting from Windows:

  • Use PuTTY or the built-in Windows Terminal
  • Enter the IP address and port 22

First Steps After Connecting

  1. Change the root password — the default password must be changed immediately
  2. Create a new user with sudo privileges instead of always using root
  3. Update the system — security patches are the first priority
  4. Enable the firewall — allow only the ports you need (22 for SSH, 80 and 443 for web)

Basic System Administration

Resource Monitoring

Command Function
top or htop Real-time CPU and memory usage
free -h Available and used memory
df -h Available storage space
uptime Server uptime and CPU load
iotop Disk usage per process

Service Management

Most modern distributions use systemd:

  • Start a service: systemctl start service-name
  • Stop a service: systemctl stop service-name
  • Restart: systemctl restart service-name
  • Check status: systemctl status service-name
  • Enable on boot: systemctl enable service-name

Package Management

Ubuntu/Debian:

  • Update package list: apt update
  • Upgrade packages: apt upgrade
  • Install a package: apt install package-name

CentOS/AlmaLinux:

  • Update: dnf update
  • Install: dnf install package-name

Securing Your Server

1. SSH Keys Instead of Passwords

SSH keys are more secure than passwords. The steps:

  1. Generate a key pair on your local machine
  2. Copy the public key to the server
  3. Disable password authentication in SSH settings
  4. Disable direct root login via SSH

2. Firewall

UFW (Ubuntu) is the simplest approach:

  • Allow SSH: ufw allow 22
  • Allow HTTP: ufw allow 80
  • Allow HTTPS: ufw allow 443
  • Enable firewall: ufw enable

3. Fail2ban

Protects against brute force login attempts. It monitors log files and automatically blocks suspicious IP addresses.

4. Automatic Security Updates

Enable automatic security updates to minimize the vulnerability window. On Ubuntu, install the unattended-upgrades package and enable it.

Backups

The 3-2-1 Rule

  • 3 copies of your data
  • On 2 different storage media
  • 1 copy offsite

What to Back Up

  • Application files and configurations
  • Databases (full dump)
  • SSL certificates
  • Nginx/Apache configurations
  • Cron jobs
  • List of installed packages
Backup Type Frequency Retention
Database Daily 30 days
Application files Weekly 12 weeks
Full server snapshot Monthly 6 months

At CLOUD, the daily backup service is available for affordable pricing — pricing and plans (7-day retention) or affordable pricing — pricing and plans (30-day retention).

Monitoring and Alerts

What to Monitor

Metric Alert Threshold
CPU usage Above 80% for 5 minutes
Memory usage Above 85%
Disk space Below 15% available
Uptime Any downtime
SSL certificate 14 days before expiration

Free Monitoring Tools

  • Netdata — comprehensive real-time monitoring dashboard
  • UptimeRobot — free external monitoring for up to 50 sites
  • Monit — service monitoring with automatic restart

Routine Tasks

Task Frequency
Update operating system Weekly
Review security logs Weekly
Test backup restoration Monthly
Review user permissions Monthly
Update applications and libraries Per release
Clean temporary files and old logs Monthly

When to Use a Control Panel

If you lack sufficient command-line experience, a control panel like cPanel or Plesk provides a graphical interface for most tasks. At CLOUD (cloud.net.sa), you can add cPanel from competitive pricing or Plesk from competitive pricing when ordering your VPS.

Troubleshooting Common Issues

Server Suddenly Slow

  1. Check CPU and RAM with htop — is a single process consuming excessive resources?
  2. Check disk with iostat — is iowait high?
  3. Review logs — are there brute force attempts or recurring errors?
  4. Check network — is there a DDoS attack?

Cannot Connect via SSH

  1. Verify the server is running from the control panel
  2. Confirm the firewall has not blocked your IP address
  3. Try connecting from a different network
  4. Use the VNC Console from the control panel as a temporary alternative

Website Not Working

  1. Verify the web service (Nginx/Apache) is running
  2. Review error logs
  3. Confirm DNS points to the correct address
  4. Check file permissions

Summary

VPS management is not difficult, but it requires commitment. The core steps: secure SSH, enable the firewall, set up backups, and monitor continuously. Start with these basics and build on them gradually. If you encounter difficulties, the support team at CLOUD (cloud.net.sa) is available in Arabic to help.


Get Started

Want to try it yourself? Choose the right hosting plan or build your custom server with the specs you need.

Share