I have a remote server behind a firewall and a NAT with no external IP address. I want to be able to establish a reverse SSH connection with this server. The issue is getting the remote server to instantiate the reverse SSH connection to my local computer at my command.
Assuming I have superuser privileges on the remote server and that the remote server in its default state has only basic web access, how could I communicate sensibly with the server in order to get it to instantiate a reverse SSH connection?
As an extremely coarse solution, imagine my creating a webpage which is monitored continuously by the remote server and that the webpage is changed in some way to communicate to the remote server to instantiate a reverse SSH connection.
What would be a more sensible approach? Could communications be established via a decentralised system, like BitTorrent?