Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

How to Reboot a Linux Server with SSH

This guide shows how to restart a Linux server from the command line. It needs root access.

VPS and Cloud Servers2 min read8 steps

What is SSH?

SSH is a safe way to control a server from your own computer by typing commands. It is like a remote control with a keyboard. A reboot means turning the server off and on again. This can fix slowness, finish updates, or clear stuck programs.

Warning

A reboot stops your website, email and apps for a short time. Visitors will see errors during that time. Save open work and take a backup before you start. Do not reboot during a big update or while files are being copied.

Steps

  1. Open a terminal on your computer. On Windows, use PowerShell or a tool like PuTTY.
  2. Connect to your server. Use your own details:
ssh root@your-server-ip

This logs you in. Your server's address and login are in your welcome email.

  1. Type the password if asked. Nothing shows on screen while you type. This is normal.
  2. Run the reboot command:
sudo reboot

This restarts the server safely.

  1. Your SSH window will close.
  2. Wait one to three minutes.
  3. Connect again with the same SSH command.
  4. Check how long the server has been on:
uptime

If it shows a short time, the reboot worked.

Other ways to reboot

sudo shutdown -r now
sudo systemctl reboot

Both restart the server at once. The -r means restart.

Reboot later

sudo shutdown -r +5

This waits five minutes first. Cancel it with sudo shutdown -c.

If SSH does not work after the reboot

Tip: Check that your services start by themselves after a reboot. Run systemctl is-enabled nginx or the name of your web server.

Quick recap

  • Connect with SSH.
  • Run sudo reboot.
  • Wait a few minutes and log in again.
  • Back up first, since sites go down for a short time.