Posted January 14, 2021
dtgreene: The situation involves me likely not being near the computer (perhaps I'm at one of thoes in-person events we used to have), but still need to be able to access it remotely (say, by ssh). In this case, LEDs at home would not be visible.
Oh boy. Well, that changes things. Forget everything I said earlier. :D Do you already have access to your home network from outside? If not, that is the most difficult part.
If you have an Android phone, I would recommend JuiceSSH (free for standard, a few euros for pro -- it doesn't cost much and is really useful so I recommend paying the few euros). Once you get ssh connection, you can do everything you want. Just install WOL on the RPi and the RPi connection is all you need to get things going.
But to get to your home network from outside, that's the tricky part...
Your ISP probably uses dynamic IPs so every time this changes, you are going to have trouble. Unless...
I would recommend you either use a static IP or reserve an IP on the DHCP server for the RPi. Then set up an account at dnsdynamic.org or noip.com and you will get an address like dtgreene.dnsdynamic.org. On the RPi, you can install ddclient. It's in the repos so just sudo apt install ddclient. Add the dnsdynamic/noip infos into the ddclient.conf, set ddclient to start automatically. The problem is still that you are in a different network so you need to set up also port forwarding -- only forward port 22.
Once you have done all of this, you should be able to log on to your RPi using pi@dtgreene.dnsdynamic.org/noip.com:22. And to make everything easier, just make all your typical commands you want to run into small scripts on the RPi so once you ssh in you don't need to start typing long commands on your phone screen.
Can't remember all the configurations for the ddclient off the top of my head, but I am sure with these tips you got enough keywords to search.
Post edited January 14, 2021 by frogthroat