SSH restart Linux system using reboot command

You can restart a Linux system using the reboot command over SSH by executing the following steps:

  1. Connect to the remote Linux system via SSH:
    ssh user@host
  2. Run the sudo command to execute the reboot command with root privileges:
    sudo reboot
  3. Confirm the reboot by typing yes:
    yes

This will immediately restart the Linux system. You will be logged out of the SSH session, and the remote system will shut down and restart. After the reboot is complete, you can reconnect to the system via SSH.

Leave a Comment