#!/bin/bash
[ -z "$3" ] && echo "usage: $0 <localport> <remoteport> <user@host>" && exit 1

exec ssh -fNR $1:localhost:$2 $3
