Skip to content

Instantly share code, notes, and snippets.

@danielpereirabp
Created April 3, 2018 13:20
Show Gist options
  • Save danielpereirabp/8182729d51a1cb33a2a67d5916fb1a20 to your computer and use it in GitHub Desktop.
Save danielpereirabp/8182729d51a1cb33a2a67d5916fb1a20 to your computer and use it in GitHub Desktop.
Proxy SSH Over SOCKS
  1. Setup Your Socks Proxy

ssh -D 127.0.0.1:1080 user@ip.or.domain -p 2002

  1. Add The Proxy to Your SSH Config

Add this to your ~/.ssh/config:

Host bitbucket.org IdentityFile ~/.ssh/gitkey ProxyCommand=nc -X 5 -x localhost:1080 %h %p

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