Initial VPS Setup Checklist (Ubuntu/CentOS/AlmaLinux) Print

  • VPS Setup, VPS Checklist, VPS
  • 0

Initial VPS Server Setup Checklist

  1. 1 Connect via SSH

    Open your terminal and connect to your instance using the root credentials or SSH keys supplied by your hosting provider:

    ssh root@your_server_ip
  2. 2 Update the System Package Repository

    Refresh package listings and apply outstanding patches depending on your operating system architecture:

    Ubuntu / Debian:
    apt update && apt upgrade -y
    CentOS / AlmaLinux / RHEL:
    dnf update -y
  3. 3 Configure Server Hostname

    Map a Fully Qualified Domain Name (FQDN) targeting your virtual instance:

    hostnamectl set-hostname yourserver.yourdomain.com
  4. 4 Create a Sudo Non-Root Deployment User

    Avoid daily root logins by setting up an isolated user space with root privileges:

    adduser deployuser
    Assign Permissions (Ubuntu/Debian):
    usermod -aG sudo deployuser
    Assign Permissions (CentOS/AlmaLinux):
    usermod -aG wheel deployuser
  5. 5 Set Up SSH Key Authentication

    Execute this command from your local workstation's terminal to mirror your cryptographically secure public identity onto the host:

    ssh-copy-id deployuser@your_server_ip
  6. 6 Configure the Firewall Framework

    Ensure ports are blocked by default while explicitly verifying that your current SSH connection is whitelisted:

    Ubuntu (UFW):
    ufw allow OpenSSH
    ufw enable
    CentOS / AlmaLinux (firewalld):
    firewall-cmd --permanent --add-service=ssh
    firewall-cmd --reload
  7. 7 Set the Correct Timezone

    Synchronize log timelines with your specific operational timezone framework:

    timedatectl set-timezone Asia/Kolkata
  8. 8 Install Essential Environment Utilities

    Equip your instance terminal with essential network tools and basic monitoring runtime software:

    Ubuntu / Debian:
    apt install -y curl wget git vim htop unzip fail2ban
    CentOS / AlmaLinux:
    dnf install -y curl wget git vim htop unzip fail2ban
  9. 9 Disable Root SSH Authentication

    Important: First, ensure your custom user account can successfully open an independent sudo session. Then, access your configuration configuration environment:

    Edit file: /etc/ssh/sshd_config and modify key property to: PermitRootLogin no

    Apply modification parameters immediately by executing a system daemon refresh:

    systemctl restart sshd

Security Warning

Please proceed to complete our comprehensive VPS Infrastructure Hardening Manual directly after finalizing these checklist items. Automated bots and discovery scrapers scan unhardened public cloud allocations within minutes of deployment online.


Was this answer helpful?

« Back