SshTunnel

From Mu2eWiki
Jump to navigation Jump to search

Some web pages are blocked from viewing offsite. Here is method to tunnel a browser through ssh.

Michael Diesburg
Monday, November 09, 2015 3:32 PM

        First pick a node that you can ssh into from off-site.
Let's assume you can login to gpvm interactive.   Then on the
remote node where you want to view the web page enter this command:

$ ssh -f mu2egpvm01.fnal.gov -L 12345:mu2esamgpvm01.fnal.gov:8787 -N

        In the above 12345 is just some unused port number on your
machine.   Just pick some large number.   Ssh will complain if something
else is already listening on that port.
        Now go to your browser and in the address bar enter:

localhost:12345/fts/status

        That should bring up the FTS status page.  The 12345 above is
the same port number you used in the ssh command.