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
sudocommand to execute therebootcommand 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.