Skip to content

Instantly share code, notes, and snippets.

@meyt
Created October 21, 2018 08:20
Show Gist options
  • Save meyt/98e812b5b800992f2ad25c633c7685fd to your computer and use it in GitHub Desktop.
Save meyt/98e812b5b800992f2ad25c633c7685fd to your computer and use it in GitHub Desktop.
Connect to git/ssh through TOR proxy
# Append into ~/.ssh/config
Host gitlab.com
User git
Hostname gitlab.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/id_rsa
ProxyCommand /bin/nc -x 127.0.0.1:9050 %h %p
@meyt
Copy link
Author

meyt commented Sep 29, 2022

or

git config --global http.proxy socks5://localhost:9050

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