Skip to content

Instantly share code, notes, and snippets.

@olssonm
Last active April 7, 2021 14:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olssonm/6840fe8dc1b729c5a2d4d78c124867e4 to your computer and use it in GitHub Desktop.
Save olssonm/6840fe8dc1b729c5a2d4d78c124867e4 to your computer and use it in GitHub Desktop.
SSH proxy with curl
# Enabling proxy
ssh -D 8080 -f -C -N username@server
# Tunnelling via proxy
curl -v --socks5-hostname 0:8080 icanhazip.com
# Killing process
ps -C ssh
kill {PID}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment