{"id":560,"date":"2010-09-09T20:05:03","date_gmt":"2010-09-09T18:05:03","guid":{"rendered":"http:\/\/www.lucas-nussbaum.net\/blog\/?p=560"},"modified":"2010-09-10T17:00:41","modified_gmt":"2010-09-10T15:00:41","slug":"ssh-proxycommand-and-belier","status":"publish","type":"post","link":"https:\/\/www.lucas-nussbaum.net\/blog\/?p=560","title":{"rendered":"SSH ProxyCommand and belier"},"content":{"rendered":"<p><a href=\"http:\/\/www.df7cb.de\/blog\/2010\/belier.html\">Christoph<\/a>, belier really looks like a hack. It&#8217;s easy to use ProxyCommand to connect to hosts using several hops.<\/p>\n<p>Let&#8217;s say that you want to connect to host c, which can only be reached from host b, which can only be reached from host a. It&#8217;s as simple as doing:<\/p>\n<pre>Host a\r\n    User logina\r\n\r\nHost b\r\n    ProxyCommand ssh a nc -q 1 b 22\r\n    User loginb\r\n\r\nHost c\r\n    ProxyCommand ssh b nc -q 1 b 22\r\n    User loginc<\/pre>\n<p>And of course, it just works with scp, rsync, and everything ssh-based.<\/p>\n<p>It cannot auto-login using passwords, but I&#8217;m not sure that having passwords in clear text is a good idea either;)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Christoph, belier really looks like a hack. It&#8217;s easy to use ProxyCommand to connect to hosts using several hops. Let&#8217;s say that you want to connect to host c, which can only be reached from host b, which can only be reached from host a. It&#8217;s as simple as doing: Host a User logina Host [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"0","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[13],"tags":[],"class_list":["post-560","post","type-post","status-publish","format-standard","hentry","category-planetdebian"],"_links":{"self":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/560","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=560"}],"version-history":[{"count":4,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/560\/revisions"}],"predecessor-version":[{"id":565,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=\/wp\/v2\/posts\/560\/revisions\/565"}],"wp:attachment":[{"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=560"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=560"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lucas-nussbaum.net\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=560"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}