You can restart a Linux system using the reboot
command over SSH by executing the following steps:
- Connect to the remote Linux system via SSH:
ssh user@host
- Run the
sudo
command to execute thereboot
command with root privileges:sudo reboot
- 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.