Linux Install etherwake Under Debian / Ubuntu Linux
etherwake command can be used to send a Wake-On-LAN “Magic Packet” under Linux operating systems. Type the following command to install the same under Debian / Ubuntu Linux desktop:
$ sudo aptitude install etherwake
How Do I Send WOL Magic Packets Under Linux?
Type the following command:
# wakeonlan MAC-Address-Here
OR
# etherwake MAC-Address-Here
# etherwake -D MAC-Address-Here
https://www.rootusers.com/enable-ssh-linux-mint/
wakeonlan 40:16:7e:a7:ae:03
Install OpenSSH Server
Within the terminal, run the following command as root to install the OpenSSH server package.
apt-get install openssh-server -y