Remote Shutdown of a Linux / Unix Computer From MS-Windows

https:‮al.www//‬utturi.com
Remote Shutdown of a Linux / Unix Computer From MS-Windows

To remotely shutdown a Linux or Unix computer from Microsoft Windows, you can use the ssh command and the shutdown command.

The ssh command is a utility that enables secure remote access to a computer.

The shutdown command is a utility that shuts down or reboots the system.

To remotely shutdown a Linux or Unix computer using the ssh and shutdown commands, you can use the ssh command to connect to the remote computer and the shutdown command to shut it down:

ssh user@remote_host shutdown -h now

This will connect to the remote computer as the user user and shut it down immediately.

To remotely shutdown a Linux or Unix computer with a timeout, you can use the ssh command to connect to the remote computer and the shutdown command with the -h option to halt the system and the + followed by the number of minutes until shutdown to specify the timeout:

ssh user@remote_host shutdown -h +10

This will connect to the remote computer as the user user and shut it down in 10 minutes.

To remotely shutdown a Linux or Unix computer and reboot it, you can use the ssh command to connect to the remote computer and the shutdown command with the -r option to reboot the system and the now argument to shut it down immediately:

ssh user@remote_host shutdown -r now

This will connect to the remote computer as the user user and shut it down immediately and reboot it.

Keep in mind that these are just a few examples of how to remotely shutdown a Linux or Unix computer from Microsoft Windows. You can customize the options and arguments to meet the specific requirements of your script. You should also regularly review and update the script to ensure that it is correct and efficient.

Created Time:2017-10-30 14:27:15  Author:lautturi