Remote shutdown deamon/utility
Hi,
Is there something like a remote shutdown daemon or utility for slackware available? Something without having to log in and halt the system. Like something you can combine with a windows system, or linux. Thanks. |
I'm not quite sure what you are asking for but you could try this from any linux machine and it will shut down the machine at the ip address you enter.
Code:
ssh root@<ip-address> halt |
I will add to this and say from Windows you can install openssh client (works from cmd.exe like linux ssh) and / or PuTTY to remote "anything" on the linux box.
|
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. |
Quote:
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: Code:
poweroff Code:
putty.exe -pw somepass -m poweroff_linux_box.txt someuser@someipaddress 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... |
Quote:
|
Quote:
The best option is to use Slax-Dude's approach, using a *regular user* to login via ssh (via an ssh key preferably). You can then run `sudo shutdown -h now` assuming your sudoers file is setup properly to allow that command to be run without requiring a password. |
Thanks Slax-Dude and the other posters, that will work I think. :)
|
All times are GMT -5. The time now is 10:45 AM. |