tcp-ssh-reverse-tunnel - bitreich-gaming-link - bitreich-gaming-link Simple game linking using unix tools.
 (HTM) git clone git://bitreich.org/bitreich-gaming-link git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/bitreich-gaming-link
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
       ---
       tcp-ssh-reverse-tunnel (278B)
       ---
            1 #!/bin/bash
            2 
            3 if [ $# -lt 3 ];
            4 then
            5         printf "usage: %s user@sshserver localport remoteport\n" \
            6                 "$(basename "$0")" >&2
            7         exit 1
            8 fi
            9 
           10 sshserver="$1"
           11 localport="$2"
           12 remoteport="$3"
           13 
           14 printf "Exit shell to exit tunnel.\n"
           15 ssh -R ${remoteport}:localhost:${localport} \
           16         ${sshserver}
           17