Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I live in a country that blocks most types Internet access and protocols so I need to utilize Tor from the command line. I haven't come across much useful information in this regard, so any information would be helpful.

I've already downloaded the Tor/Vidalia bundle, although it appears to only work through the provided web-browser that it utilizes. That is great for searching the web, etc. but I need to ssh and use curl, etc., too.

share|improve this question

Running Tor provides a standard proxy you can connect to at localhost:9050 with anything that supports the SOCKS protocol. Just search online for something like "SSH over Tor", or if that fails, "SSH through SOCKS proxy".

Two examples:

  • SSH:

    ssh -o ProxyCommand="nc -X 4 -x localhost:9050 %h %p"

  • curl:

    curl --socks4a localhost:9050

share|improve this answer
hi, would you have an example of using a perl script as well? i need to use it like: perl -scriptargs -moreargs -args – Mustafa A. Nov 18 '12 at 18:26
It depends on the script. It would have to be written to work with a SOCKS proxy. – gabedwrds Nov 18 '12 at 19:58

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.