While SSHing into my Raspberry Pi, I got distracted. I attempted to shut down my PC using
sudo shutdown now, but because I was still connected, I accidentally shut down the Raspberry Pi instead. This closed the connection and left me unable to connect to it.
I was able to restart it by calling someone who was near the Raspberry Pi to pull the plug out and back in.
Is there a way I can restart it remotely without having to depend on someone to be physically present?