I have OSMC installed on a Raspberry Pi model B. The RPi is behind a router at my place of residence. I do not have access to this router. I wish to access the terminal from my place of work (which includes off-site work visiting customers). I have tried to configure ngrok without success. Maybe this is the answer, maybe there is something better or easier.
How can I access the OSMC terminal from any outside network without access to the router at my place of residence?
UPDATE:
I’ll explain what I can do and what I want to do.
I have a python script that monitors an email address specific to my RPi. I can send a command to the email address and the RPi will run the command and return by email the output. For example, if I email “ls” to the email address, I get a reply with the contents of the home directory.
The documentation for ngrok states that by running a command like ngrok http 80, the publicly accessible IP address of the RPi is returned. I want to email the RPi a command, get the IP address replied to me and then be able to putty to the command line.
I will add a couple of things that I noticed when installing:
the wget command downloads to current directory, so you can see the downloaded file using ls -al and rename it with mv weavedconnectd-1.3-02.deb?raw=true weavedconnectd-1.3-02.deb
the instructions mention using crontab to get weaved to autostart on reboot. Since crontab is not enabled in osmc by default, I used rc.local instead (which is enabled): sudo nano /etc/rc.local
{add line at end, but before the exit 0 row}: sh /usr/bin/weavedstart.sh