Skip to content

Instantly share code, notes, and snippets.

@yordanoweb
Created October 27, 2022 23:43
Show Gist options
  • Save yordanoweb/48556ad88b5844438e128ce432a1a8d1 to your computer and use it in GitHub Desktop.
Save yordanoweb/48556ad88b5844438e128ce432a1a8d1 to your computer and use it in GitHub Desktop.
SSH through a SOCKS proxy

Connect to remote host using a SOCKS proxy

If we have Tor service running locally or any other SOCKS service available at 9050 port on localhost, then we can go like this:

ssh -o ProxyCommand='nc -x 127.0.0.1:9050 %h %p' user@server.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment