Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I use an SSH client over Tor in Ubuntu 11.10? I already have Tor running (and successfully anonymizing HTTP traffic).

share|improve this question

3 Answers 3

From http://www.howtoforge.com/anonymous-ssh-sessions-with-tor:

Add the following block to the top of your ~/.ssh/config file.

Host *
CheckHostIP no
Compression yes
Protocol 2
ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050) %p
share|improve this answer
    
You need to install package connect-proxy for this to work (source: lists.debian.org/debian-user/2012/08/msg01213.html). –  sup Feb 26 '13 at 0:44

Use proxychains for it. It comes preconfigured to use a local tor proxy. Also you might want to avoid using DNS names on such activities as those might resolve the IP outside of tor, which is unwanted. (Thugh I hadn't checked if this is the case or not when using proxychains out of the box.)

share|improve this answer

With Tor running, you can use torify command. Eg:

torify ssh user@remotehost
torify curl curlmyip.com
share|improve this answer

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.