Please help with commands of How to shutdown reboot a remote linux machine?
Connect to the remote machine using ssh and issue the following command to shutdown the machine sudo shutdown -h now to restart the machine sudo shutdown -r now
ssh -lroot <remotepc> shutdown -h now
worked for me, thanks.
You could also try these commands: 1.For reboot: reboot 2.For shutdown: init 0 poweroff