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.

My aim is to ssh to a machine running openssh server, and I want this connection be through a socks proxy made by tor. I've been searching and can only find how to configure ssh to create a socks proxy. Luckily I found this which provides the simpple solution:

ssh -o ProxyCommand='nc -x myproxyserver.example.com:1080 %h %p' \ targetsshserver.example.com

I configured Tor with socks HOST 127.0.0.1 and port 9150 so I replaced "myproxyserver.example.com:1080" with "127.0.0.1:9150". And "targetsshserver.example.com" with my server ip address which runs openssh. After entering the command I get this:

ssh_exchange_identification: Connection closed by remote host

I can connect with my server fine with just normal "ssh targetsshserver.example.com".

Do I need to do some configurations on my server machine running the opsnssh server? Obviously I'm missing something here. Thanks

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.