Hello.
I am trying to shutdown a PC that runs Linux using an ESP32. The ESP32 should be in softAP() mode and the PC should be connected to it.
I've thought of using https://github.com/ewpa/LibSSH-ESP32 to establish a SSH Connection and send a command, but I am unable to figure out how to use that library. There are no guides.
Next, I've thought of using TCP or UDP to send something to an opened port on the PC and run a script based on what I've received. I have no idea if this is possible.
Finally, I am wondering if a HTTP solution can be applied. But I have no idea where to begin to look.
What do you think ?
Thank you.
Should it be possible to shutdown a PC using an ESP32 ?
-
- Posts: 160
- Joined: Thu Jan 31, 2019 2:32 pm
Re: Should it be possible to shutdown a PC using an ESP32 ?
You'd need a task running on Linux reading a socket and that has elevated permissions enabling it to do a shutdown. Not very secure.
Who is online
Users browsing this forum: Google [Bot] and 78 guests