##Open reverse proxy
args: $IP -> Scan ip using url of ngrok via traceroute (Unix) or tracert (Windows) $PORT -> Port exposed by ngrok
ssh -N -R 2323:0.0.0.0:22 -o ServerAliveInterval=60 -o GatewayPorts=yes -f root@$IP -p $PORT
An example of a script:
args: $PORT -> port of service $IP -> ip of service $USER -> User of remote server
ssh -N -L 0.0.0.0:$PORT:$IP:$PORT -o ServerAliveInterval=60 -f $USER@localhost -p 2323
args: $SCRIPTNAME -> Name of script allocated in dbin folder
docker exec -it ngrok sh /dbin/$SCRIPTNAME.sh
Need to add port binding in docker-compose.yml in section
services > ngrok > ports