You can remotely shut down a Linux or Unix computer from a Microsoft Windows computer using the ssh
protocol and the shutdown
command. Here’s how:
- Download and install an
ssh
client for Windows, such as PuTTY. - Open the PuTTY client.
- In the Host Name (or IP address) field, enter the hostname or IP address of the Linux or Unix computer you want to shut down.
- Click the Open button.
- In the PuTTY terminal window, log in to the Linux or Unix computer with your username and password.
- Run the following command to shut down the computer:
$ sudo shutdown -h now
The -h
option tells the shutdown
command to halt the system, and the now
argument tells the command to shut down immediately.
Note that you’ll need to have administrative privileges on the Linux or Unix computer to run the shutdown
command. If you don’t have the necessary permissions, you’ll need to log in as the root user or use sudo
to run the command with elevated privileges.