{"id":518,"date":"2011-10-28T14:25:43","date_gmt":"2011-10-28T20:25:43","guid":{"rendered":"http:\/\/benincosa.com\/blog\/?p=518"},"modified":"2014-11-19T11:24:53","modified_gmt":"2014-11-19T17:24:53","slug":"ssh-through-proxy","status":"publish","type":"post","link":"https:\/\/benincosa.com\/?p=518","title":{"rendered":"SSH through proxy"},"content":{"rendered":"<p>Problem of the day is I have a computer that is on some local intranet that can not SSH out into the real world. \u00a0There is however a proxy server on my network that I can configure in my browser to get outside internet access&#8230;<\/p>\n<p>But I want ssh. \u00a0So&#8230; after a bit of internet searching and then finally some nagging to a friend who knows this stuff better than I do, we came up with the following:<\/p>\n<p>1. \u00a0Download <a href=\"http:\/\/bent.latency.net\/bent\/git\/goto-san-connect-1.85\/src\/connect.html\">connect.c<\/a><\/p>\n<p>2. \u00a0Compile connect.c on your Linux server:<\/p>\n<pre>gcc connect.c -o \/usr\/bin\/ssh-proxy-connect<\/pre>\n<p>3. \u00a0Edit \/etc\/ssh\/ssh_config by appending this last line:<\/p>\n<pre>ProxyCommand \/usr\/bin\/ssh-proxy-connect -5 -S &lt;proxy-server-goes here&gt;:1080 %h %p\r\n<\/pre>\n<p>4. \u00a0SSH normally to where you need to go.<\/p>\n<pre>ssh joe@smith.com<\/pre>\n<p>That&#8217;s it! \u00a0Once you get SSH through then anything can happen. \u00a0Its the ultimate firewall poker. \u00a0Back doors, etc. \u00a0You just opened up Pandora&#8217;s box.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Problem of the day is I have a computer that is on some local intranet that can not SSH out into the real world. \u00a0There is however a proxy server on my network that I can configure in my browser to get outside internet access&#8230; But I want ssh. \u00a0So&#8230; after a bit of internet&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[920],"tags":[],"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/518"}],"collection":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=518"}],"version-history":[{"count":2,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/518\/revisions"}],"predecessor-version":[{"id":2776,"href":"https:\/\/benincosa.com\/index.php?rest_route=\/wp\/v2\/posts\/518\/revisions\/2776"}],"wp:attachment":[{"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=518"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=518"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/benincosa.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=518"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}