ssh-proxy 216 B

1234567891011121314151617
  1. #!/bin/sh
  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 localhost:${port}"
  12. ssh -N -D $port $host