How can I use an SSH client over Tor in Ubuntu 11.10? I already have Tor running (and successfully anonymizing HTTP traffic).
Add the following block to the top of your
Host * CheckHostIP no Compression yes Protocol 2 ProxyCommand connect -4 -S localhost:9050 $(tor-resolve %h localhost:9050) %p
torify fails on your platform then try this :
connect in your path, maybe by building
connect.c from source.
Create a script called
#!/bin/bash export CONNECT_PASSWORD="" exec ssh -o ProxyCommand="connect -5 -S 127.0.0.1:9150 %h %p" $*
You could make other programs like
git work by creating scripts like this
git-tbb one :
#!/bin/bash export GIT_SSH=`which ssh-tbb` git pull exec git $*
Rename them to
-tor if you change the port to 9050 for the default tor config, as opposed to TBB's default 9150.