ssh-proxy 219 B

1234567891011121314151617
  1. #!/usr/bin/zsh
  2. if [ $# -eq 0 ] ; then
  3. echo "Usage: $0 user@host [port]"
  4. fi
  5. host=$1
  6. if [ $# -eq 2 ] ; then
  7. port=$2
  8. else
  9. port=8080
  10. fi
  11. echo "Configure SOCKS proxy as ${host}:${port}"
  12. ssh -N -D $port $host