From da175ae7dcb1926d1bc41d5b3ebb09b17084e2af Mon Sep 17 00:00:00 2001 From: Anders Pitman Date: Tue, 22 Sep 2020 23:06:03 -0600 Subject: [PATCH] Add tunnel.sh --- tunnel.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100755 tunnel.sh diff --git a/tunnel.sh b/tunnel.sh new file mode 100755 index 0000000..fdfd2a6 --- /dev/null +++ b/tunnel.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +domain=$1 +serverPort=$2 +localPort=$3 + +ssh -t -R $serverPort:localhost:$localPort $domain sirtunnel $domain:$serverPort