Quote:
Originally Posted by user100
Yes but its not for me.
I mean something like a daemon running on the slackware server and a simple "click app" for windows which will send the command or whatever to shut it down.
|
You can use putty together with a simple script, and you'll have your clicky thingy that shuts down a linux box, provided such linux box is running sshd.
Make a text file (let's name it "poweroff_linux_box.txt") in the same directory as putty.exe and put the following in it:
Now, make a text file named clicky_thingy.bat and put the following in it:
Code:
putty.exe -pw somepass -m poweroff_linux_box.txt someuser@someipaddress
Note1: replace the following with your own data
someipaddress = the ip address for your linux box
someuser = the username you use to login to your linux box
somepass = the password for the username you use to login to your linux box
Note2: this is EXTREMELY insecure, as the user + pass for your linux box are there in clear text for anyone to see and exploit. Use it at your own risk.
That's it... click away...