{"id":130,"date":"2022-10-20T20:07:38","date_gmt":"2022-10-20T20:07:38","guid":{"rendered":"https:\/\/atmos.ucla.edu\/it\/?page_id=130"},"modified":"2022-10-20T22:21:13","modified_gmt":"2022-10-20T22:21:13","slug":"ssh-port-forwarding","status":"publish","type":"page","link":"https:\/\/atmos.ucla.edu\/it\/ssh-port-forwarding\/","title":{"rendered":"SSH Tutorial"},"content":{"rendered":"\n<p>This is useful if you are trying to transfer files from server A to C, where C is behind a firewall. An example is if you want to SCP files from your home computer to a server within the AOS network. This will require an intermediary server B and in our example, this is our SSH Gateway, mercury.atmos.ucla.edu. Put the following into your&nbsp;<strong>~\/.ssh\/config<\/strong>&nbsp;file.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Host hostname.atmos.ucla.edu\nUser username\nHostName hostname.atmos.ucla.edu\nProxyCommand ssh username@mercury.atmos.ucla.edu -W %h:%p -q\n\n<\/pre>\n\n\n\n<p>After putting this in you can simply run the command&nbsp;<em>ssh hostname.atmos.ucla.edu<\/em>. This will tunnel you through to your target host. The&nbsp;<strong>-W %h:%p<\/strong>&nbsp;is doing the forwarding and&nbsp;<strong>-q<\/strong>&nbsp;is simply suppressing output errors.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"vnc_configuration\">VNC Configuration<\/h3>\n\n\n\n<p>WIP<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is useful if you are trying to transfer files from server A to C, where C is behind a firewall. An example is if you want to SCP files from your home computer to a server within the AOS network. This will require an intermediary server B and in our example, this is our&#8230;<\/p>\n","protected":false},"author":181,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-130","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/pages\/130","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/users\/181"}],"replies":[{"embeddable":true,"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/comments?post=130"}],"version-history":[{"count":5,"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/pages\/130\/revisions"}],"predecessor-version":[{"id":159,"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/pages\/130\/revisions\/159"}],"wp:attachment":[{"href":"https:\/\/atmos.ucla.edu\/it\/wp-json\/wp\/v2\/media?parent=130"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}