Shutdown Windows machine from linux terminal

前端 未结 8 2007
眼角桃花
眼角桃花 2020-12-28 21:12

I am running an application on linux machine. By giving the ip address of a windows machine as input, the application must shutdown the windows machine. If the machines run

8条回答
  •  长情又很酷
    2020-12-28 21:30

    You need a way to launch a shell on the Windows box so you can run th shutdown command built in to Windows.

    You can install Cygwin for this, then install an SSH daemon in Windows. Once that's running, your Linux box can run commands on the Windows box just as if it were another Linux machine.

    Here are some instructions for setting up Cygwin's sshd in Windows.

提交回复
热议问题