{"id":1160,"date":"2012-07-09T09:21:20","date_gmt":"2012-07-09T09:21:20","guid":{"rendered":"http:\/\/blog.designed79.co.uk\/?p=1160"},"modified":"2012-08-28T11:58:02","modified_gmt":"2012-08-28T11:58:02","slug":"tor-ssh","status":"publish","type":"post","link":"https:\/\/blog.designed79.co.uk\/?p=1160","title":{"rendered":"TOR SSH"},"content":{"rendered":"<p>To connect to a server using\u00a0ssh\u00a0through\u00a0<a href=\"https:\/\/www.torproject.org\/\">Tor<\/a>\u00a0from a computer that does not have\u00a0proxychains,\u00a0tsocks\u00a0or\u00a0torify\u00a0installed, you can run:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">ssh -o ProxyCommand='nc -x [tor_server]:[tor_port] %h %p' [ssh_server]<\/div><\/div>\n<p>For example, if you have a standard install of\u00a0<a href=\"https:\/\/www.torproject.org\/\">Tor<\/a>\u00a0on your own computer and want to log in to example.com, you can run:<\/p>\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;\"><div class=\"text codecolorer\">ssh -o ProxyCommand='nc -x 0:9050 %h %p' example.com<\/div><\/div>\n<p>or use TorSocks<\/p>\n<p>http:\/\/code.google.com\/p\/torsocks\/<\/p>\n<p>NOTE : You may have to change the port for TOR from 9050 to match your TOR&#8217;s SOCKS address or need to edit it&#8217;s config<\/p>\n<p>&nbsp;<\/p>\n<h3><a href=\"https:\/\/www.torproject.org\/docs\/faq.html.en#TBBSocksPort\">I&#8217;m on OSX or Linux and I want to run another application through the Tor launched by Tor Browser Bundle. How do I predict my Socks port?<\/a><\/h3>\n<p>Typically Tor listens for Socks connections on port 9050. TBB on OSX and Linux has an experimental feature where Tor listens on random unused ports rather than a fixed port each time. The goal is to avoid conflicting with a &#8220;system&#8221; Tor install, so you can run a system Tor and TBB at the same time. We&#8217;re\u00a0<a href=\"https:\/\/trac.torproject.org\/projects\/tor\/ticket\/3948\">working on a feature<\/a>\u00a0where Tor will try the usual ports first and then back off to a random choice if they&#8217;re already in use. Until then, if you want to configure some other application to use Tor as a Socks proxy, here&#8217;s a workaround:<\/p>\n<p>In Vidalia, go to Settings-&gt;Advanced and uncheck the box that says &#8216;Configure ControlPort automatically&#8217;. Click OK and restart TBB. Your Socks port will then be on 9050.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To connect to a server using\u00a0ssh\u00a0through\u00a0Tor\u00a0from a computer that does not have\u00a0proxychains,\u00a0tsocks\u00a0or\u00a0torify\u00a0installed, you can run: ssh -o ProxyCommand=&#8217;nc -x [tor_server]:[tor_port] %h %p&#8217; [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1160","post","type-post","status-publish","format-standard","hentry","category-info-on-tech"],"_links":{"self":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1160","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1160"}],"version-history":[{"count":0,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=\/wp\/v2\/posts\/1160\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1160"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1160"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.designed79.co.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1160"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}