Skip to content

Instantly share code, notes, and snippets.

@Turux
Created January 9, 2018 16:33
Show Gist options
  • Save Turux/6e9f653f44bfda6cec81398e2618757a to your computer and use it in GitHub Desktop.
Save Turux/6e9f653f44bfda6cec81398e2618757a to your computer and use it in GitHub Desktop.
Bash script to open a Proxy SOCKS tunnel from your machine to a remote server (B) passing through another machine (A)
ssh -v -N -D 8888 -oProxyCommand="ssh -W %h:%p userA@machineA" userB@machineB
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment