#!/bin/sh

if [ $# -eq 0 ] ; then
    echo "Usage: $0 user@host [port]"
fi

host=$1

if [ $# -eq 2 ] ; then
    port=$2
else
    port=8080
fi

echo "Configure SOCKS proxy as localhost:${port}"

ssh -N -D $port $host
