Reverse tunnel

ssh -R N:localhost:K root@68.x.x.x 

where,

  • N is the port on the server where nginx is forwarding the request to.
  • K is the port on the local machine where application is running

Example:

ssh -R 5000:localhost:8000 do
source