Skip to content

Instantly share code, notes, and snippets.

@deinarson
Last active June 28, 2016 17:31
Show Gist options
  • Save deinarson/1c153f139ea3d1f352b8dfa91a56a019 to your computer and use it in GitHub Desktop.
Save deinarson/1c153f139ea3d1f352b8dfa91a56a019 to your computer and use it in GitHub Desktop.
Host proxy
hostname jumphost.domain.com
IdentityFile ~/.ssh/key
StrictHostKeyChecking no
UserKnownHostsFile /dev/null
User username
LogLevel ERROR
DynamicForward 18080
ssh -N -D 18080 proxy &
ssh -N -L 18080:localhost:18080 proxy
in another term
export http_proxy="http://localhost:18080"
curl destination:8080
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment