{"id":176,"date":"2009-09-03T21:49:12","date_gmt":"2009-09-04T04:49:12","guid":{"rendered":"http:\/\/ben.akrin.com\/?p=176"},"modified":"2009-09-03T21:49:12","modified_gmt":"2009-09-04T04:49:12","slug":"ssh-tunnel-to-circumvent-a-firewall","status":"publish","type":"post","link":"https:\/\/ben.akrin.com\/?p=176","title":{"rendered":"ssh tunnel to circumvent a firewall"},"content":{"rendered":"<p>My work place like many others has a pretty restrictive firewall that doesn&#8217;t let me ssh into my own machine. To get in the network, one has to use VPN which means that a furious battle will rage getting this to work in linux; but above all you won&#8217;t get to ssh from your phone.<\/p>\n<p>So if you have a home server, run the following command on your work machine and it will create a tunnel from your work machine to your home server:<\/p>\n<p>[bash]ssh -f -N -R 1337:localhost:22 root@home_server[\/bash]<\/p>\n<p>Now login to your home server and when you<\/p>\n<p>[bash]ssh localhost -p 1337[\/bash]<\/p>\n<p>You will in fact be sshing to your work machine via magic fairies &amp; such.<\/p>\n<p>It adds a level of indirection which sucks major balls, so you can copy some keys and get all that automated but I don&#8217;t want to go into these details. Figure it out.<\/p>\n<p>You can go away now.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>My work place like many others has a pretty restrictive firewall that doesn&#8217;t let me ssh into my own machine. To get in the network, one has to use VPN which means that a furious battle will rage getting this to work in linux; but above all you won&#8217;t get to ssh from your phone. &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/ben.akrin.com\/?p=176\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;ssh tunnel to circumvent a firewall&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,18],"tags":[44],"class_list":["post-176","post","type-post","status-publish","format-standard","hentry","category-i-t","category-unix-linux","tag-add-new-tag"],"_links":{"self":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/posts\/176","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=176"}],"version-history":[{"count":0,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=\/wp\/v2\/posts\/176\/revisions"}],"wp:attachment":[{"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=176"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=176"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ben.akrin.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=176"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}