SSH restart Linux system using reboot command
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
