#!/bin/sh
#
#/ usage: reverse-tunnel [remote host] [remote port] [local port]
#/
#/ options:
#/   -h,--help - Display this message.

usage() {
  grep '^#/' "$0" | cut -c4-
  exit 0
}
expr "$*" : ".*-h" >/dev/null && usage

set -eu

ssh -nNT -R "$2":localhost:"$3" "$1"
