Advertisement
DeaD_EyE

ssh_remote_forwarder

Nov 16th, 2017
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. read -p "Public IP: " pub_ip
  2. read -p "Public Port: " pub_port
  3. read -p "Username: " user
  4. read -p "Internal IP: " int_ip
  5. read -p "Internal Port: " int_port
  6.  
  7. echo "Redirecting remote port $pub_ip:$pub_port to $int_ip:$int_port"
  8. echo "Connecting to $pub_ip"
  9. ssh -NR $pub_ip:$pub_port:$int_ip:$int_port $user@$pub_ip
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement