Skip to content

Instantly share code, notes, and snippets.

@Harduim
Created December 21, 2020 22:09
Show Gist options
  • Save Harduim/c3898ccc712938eb3880439a0b035fef to your computer and use it in GitHub Desktop.
Save Harduim/c3898ccc712938eb3880439a0b035fef to your computer and use it in GitHub Desktop.
# Dynamically binds port 1080 on localhost to a remote ssh server.
# can be used as a socks 5 proxy
# usage ./ssh_proxy.sh user host port
ssh -f -N -n -D localhost:1080 -p $3 -l $1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment