Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 127.0.0.1:9151 %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

1 Answer 1

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 (tor2.tedesca.net)

I'm from: tor2.tedesca.net

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.