#!/bin/bash PORT=$1 DOMAIN=$2 INTERNAL_PORT=$(shuf -i 1024-65535 -n 1) ssh -tR $INTERNAL_PORT:localhost:$PORT tunnel $INTERNAL_PORT $DOMAIN