11 lines
300 B
Bash
11 lines
300 B
Bash
# Set the target host and port
|
|
TARGET_HOST="androidnasserver1"
|
|
TARGET_PORT="22"
|
|
LOCAL_PORT="8022"
|
|
SERVEO_DOMAIN="serveo.net"
|
|
|
|
|
|
# Check if reverse port forwarding is already active, then kill the active reverse port forwarding
|
|
ssh -R $TARGET_HOST:$TARGET_PORT:127.0.0.1:$LOCAL_PORT $SERVEO_DOMAIN
|
|
|