8 lines
142 B
Bash
Executable File
8 lines
142 B
Bash
Executable File
#!/bin/bash
|
|
|
|
PORT=$1
|
|
DOMAIN=$2
|
|
INTERNAL_PORT=$(shuf -i 1024-65535 -n 1)
|
|
|
|
ssh -tR $INTERNAL_PORT:localhost:$PORT tunnel $INTERNAL_PORT $DOMAIN
|