Skip to content

Instantly share code, notes, and snippets.

@sletix
Last active August 29, 2015 14:07
Show Gist options
  • Save sletix/d6540b3ef8cafe055622 to your computer and use it in GitHub Desktop.
Save sletix/d6540b3ef8cafe055622 to your computer and use it in GitHub Desktop.
Cheetsheet: SSH SOCKS | OSX
  • Run ssh -D 9999 %user%@%host% command for connect via ssh and open something like socks server: Alt ssh-command-with-option-D

Bonus: You can use this ssh-session!, session need opened while you need socks-tunnel

  • Go to the System Preferences -> Network -> Advanced and check SOCKS Proxy, type localhost:9999: Alt ssh-command-with-option-D

  • DONE Alt ssh-command-with-option-D

You mac ready for web-serfing* through remote server!

Apply git through SOCKS: git config --global http.proxy 'socks5://127.0.0.1:9999'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment