Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 hope this question hasn't been covered already -

I'm trying to run SSH through Tor. I've followed the instructions at the tor wiki with no success. I've been using Method 2 with connect.c. My ssh_config looks like the following:

Host 192.168.*. *

ProxyCommand none

Host *

ProxyCommand /usr/local/bin/connect -4 -S %h %p

I set up an EC2 server and have been able to SSH in successfully with the above settings. However, when I look at the sshd logs in var/log/auth.log, it shows the following:

Jul 27 01:10:58 myserver sshd[1587]: reverse mapping checking getaddrinfo for [ISP address] [my.real.ip] failed - POSSIBLE BREAK-IN ATTEMPT!

Jul 27 01:10:58 myserver sshd[1587]: Accepted publickey for ubuntu from [my real ip] port 61358 ssh2

Jul 27 01:10:58 myserver sshd[1587]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)

In other words, my actual IP is shown as making the login request. Am I totally misunderstanding the purpose of SSH over tor? Is it possible to run SSH through tor such that the login attempt is shown as coming from a tor exit node?

share|improve this question

Try to use torsocks based on tsocks proxifier for Tor:

# dpkg -l torsocks
ii  torsocks      1.2-3    amd64   use SOCKS-friendly applications with Tor
# torsocks ssh user@server
#Enter a password

# Welcome !

shell:~/$ who
me pts/16       2013-08-31 22:41 (

I'm from:

share|improve this answer

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.