{"id":1225,"date":"2018-07-09T08:28:29","date_gmt":"2018-07-09T13:28:29","guid":{"rendered":"http:\/\/blog.ls-al.com\/?p=1225"},"modified":"2018-07-09T08:28:29","modified_gmt":"2018-07-09T13:28:29","slug":"ssh-tunnel-proxy-traffic-and-bastion","status":"publish","type":"post","link":"https:\/\/blog.ls-al.com\/ssh-tunnel-proxy-traffic-and-bastion\/","title":{"rendered":"SSH Tunnel Proxy Traffic and Bastion"},"content":{"rendered":"
Sometimes you need to test a protocol and only have SSH access through a bastion host. You can display X back for example firefox or you can route traffic through a SSH tunnel. Here is a couple examples:<\/p>\n
1. Display back should be fairly common and I don't need to elaborate much. Use -X and connect to the host with firefox.<\/p>\n
\r\n$ ssh -X -F M-config ociserver1\r\nLast login: Mon Jul 9 07:46:39 2018 from desk01\r\n$ firefox \r\n<\/pre>\nURL works http:\/\/ebs.domain1.com:8000\/OA_HTML\/OA.jsp?OAFunc=OASIMPLEHOMEPAGE<\/p>\n
2. SSH Tunnel<\/p>\n
\r\n$ ssh -L8000:10.35.6.4:8000 -i oci-M opc@pub.lic.ip.address\r\nLast login: Mon Jul 9 07:36:01 2018 from c-desktop\r\n\r\n$ grep ebs \/etc\/hosts\r\n127.0.0.1 ebs.domain1.com\r\n<\/pre>\nURL works http:\/\/ebs.domain1.com:8000\/OA_HTML\/OA.jsp?OAFunc=OASIMPLEHOMEPAGE<\/p>\n","protected":false},"excerpt":{"rendered":"
Sometimes you need to test a protocol and only have SSH access through a bastion host. You can display X<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[],"class_list":["post-1225","post","type-post","status-publish","format-standard","hentry","category-ssh"],"_links":{"self":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1225","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/comments?post=1225"}],"version-history":[{"count":0,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/posts\/1225\/revisions"}],"wp:attachment":[{"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/media?parent=1225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/categories?post=1225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.ls-al.com\/wp-json\/wp\/v2\/tags?post=1225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}