Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- read -p "Public IP: " pub_ip
- read -p "Public Port: " pub_port
- read -p "Username: " user
- read -p "Internal IP: " int_ip
- read -p "Internal Port: " int_port
- echo "Redirecting remote port $pub_ip:$pub_port to $int_ip:$int_port"
- echo "Connecting to $pub_ip"
- ssh -NR $pub_ip:$pub_port:$int_ip:$int_port $user@$pub_ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement