Cleanup and switched to dot- prefix now that stow has been fixed
This commit is contained in:
7
tunnel/dot-local/bin/tunnel
Executable file
7
tunnel/dot-local/bin/tunnel
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
PORT=$1
|
||||
DOMAIN=$2
|
||||
INTERNAL_PORT=$(shuf -i 1024-65535 -n 1)
|
||||
|
||||
ssh -tR $INTERNAL_PORT:localhost:$PORT tunnel $INTERNAL_PORT $DOMAIN
|
||||
Reference in New Issue
Block a user