You want to access a remote computer from a local computer.
The remote computer does not have a public IP, is on its own local network and can access internet.
Solution: To access the remote computer, you need a middleman (proxy server) which is accessible by both, the remote and the local computer.
You open an ssh tunnel from remote to middleman. Use that ssh tunnel on local to access the remote computer.
- Create VM on a cloud service (like https://www.digitalocean.com/products/droplets/). Get its public IP and password.
- As a test, access the VM from local computer:
ssh [email protected]
. If successful, proceed. If not, inspect.