Is there a way to wake up a sleeping maching over ssh connections?

Hi,

I have a server for cold data that I do not use very often, so I am happy to save power and let it go to sleep. However, it would be nice if it could be woken up when I try to ssh to it. Any solution? I am sure many people face this issue. Something between hibernate and sleep?

Happy New Year!
kk1

Years ago I used something called “WOL”, or “wake-on-lan”. If WOL is still a thing, maybe it would be useful for you.

With WOL, you can even shut down your box and wake it up via ethernet packets. It requires UEFI/BIOS support (and the feature to be turned on), but no specific OS support. Also, you have to be able to send WOL packets on the local LAN (because typically they are filtered out otherwise). Sometimes, people use a an internal machine for that which can be triggered from the outside (to send WOL packets locally).

If your server has a Baseboard Management Controller, you can use Intelligent Platform Management Interface to remotely shutdown and remotely power on your server.

FWIW, here is a demo I just recorded of me remotely booting one of my old servers (It’s a 2004 Dell server):

I’m currently about three miles away from where the server I booted is located. I’m connecting to it by way of an SSH “jumphost” which is in turn connected to the remote server I’m booting via a back channel network (192.168.0.0/16).

1 Like