ssh -nN -R <remote-port>:localhost:<local-port> <username>@<server-ip-or-hostname><remote-port>Any free port on your remote server, e.g.9999<local-port>The port your local webserver is listening to, e.g.8080<server-ip-or-hostname>Your remote server's hostname or ip, e.g.example.com<username>A user on the remote server, e.g.foo-RArg for reverse proxy-nPrevens reading fromSTDIN-NPrevents executing remote commands
Let's say your development server is running on 8080, for example with Python:
python -m SimpleHTTPServer 8080 (serves working directory contents).
To access contens from the internet on http://example.com:9999 type...
ssh -nN -R 9999:localhost:8080 [email protected]