{"id":912,"date":"2017-02-09T12:21:56","date_gmt":"2017-02-09T11:21:56","guid":{"rendered":"http:\/\/ndk.sytes.net\/wordpress\/?p=912"},"modified":"2017-02-09T12:21:56","modified_gmt":"2017-02-09T11:21:56","slug":"ssh-tunnel","status":"publish","type":"post","link":"https:\/\/ndk.sytes.net\/wordpress\/?p=912","title":{"rendered":"SSH tunnel"},"content":{"rendered":"<p>\n\thow to open an SSH tunnel through another host:\n<\/p>\n<pre>\n# ssh -l &lt;user&gt; -L &lt;local_port&gt;:&lt;remote_host&gt;:&lt;remote_port&gt; &lt;host_to_connect&gt;<\/pre>\n<p>\n\tthis can be chained through multiple hosts, e.g.\n<\/p>\n<p>\n\t# ssh -l user1 -L 80:localhost.1234&nbsp;server1 (type on local machine)<br \/>\n\t# ssh -l user2 -L 1234:localhost:80 server2 (type on server1)\n<\/p>\n<p>\n\tnow server2&#39;s port can be reached through http:\/\/localhost<\/p>\n","protected":false},"excerpt":{"rendered":"<p>how to open an SSH tunnel through another host: # ssh -l &lt;user&gt; -L &lt;local_port&gt;:&lt;remote_host&gt;:&lt;remote_port&gt; &lt;host_to_connect&gt; this can be chained through multiple hosts, e.g. # ssh -l user1 -L 80:localhost.1234&nbsp;server1 (type on local machine) # ssh -l user2 -L 1234:localhost:80 server2 (type on server1) now server2&#39;s port can be reached through http:\/\/localhost<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,7],"tags":[],"class_list":["post-912","post","type-post","status-publish","format-standard","hentry","category-linuxunix","category-servers"],"_links":{"self":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/912","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=912"}],"version-history":[{"count":0,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/912\/revisions"}],"wp:attachment":[{"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=912"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=912"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ndk.sytes.net\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=912"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}