Rebooting a Linux server via SSH is a common administrative task required when applying configuration changes, installing updates, or troubleshooting system issues. This guide shows you how to safely restart your server using a simple SSH command. Note that rebooting will cause temporary service interruption, so schedule the reboot during a maintenance window when possible.

How to Do It

  1. Step 1: Connect to Your Server via SSH

    Open your terminal or SSH client and connect to your Linux server using your credentials. Ensure you have administrator (sudo) privileges.

  2. Step 2: Execute the Reboot Command

    Type the following command to initiate the server reboot:

    sudo reboot

    You may be prompted to enter your password to confirm the sudo action.

  3. Step 3: Wait for the Reboot to Complete

    Your SSH session will automatically terminate as the server begins the reboot process. The server will typically be back online within 1-3 minutes, depending on your system configuration and startup services.