Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

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
add comment

1 Answer

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" example.com

  • curl:

    curl --socks4a localhost:9050 example.com

share|improve this answer
    
hi, would you have an example of using a perl script as well? i need to use it like: perl script.pl -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
add comment

Your Answer

 
discard

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.