#!/usr/bin/env bash # See also ssh.socks # This is hardcoded to prgmr, for hosts that have the key file. PORT=1080 KEY=~/.ssh/proxy [ ! -f $KEY ] && echo "key $KEY not found" && exit 1 read # exec ssh -D 0.0.0.0:$PORT $1 -N -o ServerAliveInterval=5 -o ServerAliveCountMax=3 -i $KEY tunnel@10.72.72.1