Is there a way to set Kubuntu up so that it wakes up automatically from sleep mode upon ssh connection attempt? I know there is something like WoL, but that's not what I need (am I right?).
Before ssh, you have to send a wol magic package from a machine which is in the same lan with your kubuntu system. it depends on what device you have, it can be a computer or router. for ubuntu, you can install "wakeonlan".
make sure you have wol enabled in your motherboard's bios settings