<div dir="ltr"><div>I almost always use a tunnel, configured similar to what Predrag
specified.<br></div><div><br></div><div>You can greatly
simplify this process by storing these proxy configurations in your SSH
config file, e.g. on my laptop I can put in ~/.ssh/config (on macOS,
similar on *nix, you're on your own on Windows):</div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">Host bash<br> Hostname <a href="http://bash.autonlab.org">bash.autonlab.org</a><br> UseKeychain yes<br><br>Host gpu2<br> Hostname gpu2<br> ProxyCommand ssh bash exec nc %h %p<br> UseKeychain yes<br></span></div><div><br></div><div>And with that I can forward a port from GPU2 as if I could directly see the machine:<br></div><div><br></div><div>ssh -L <A>:localhost:<B> gpu2</div><div><br></div><div>That being said, I proxy through my workstation which is substantially beefier than bash, so using bash as the middle-man might be what's slowing things down (Predrag can comment on that, there might be better gateways to use). I generally have no issues forwarding jupyter notebooks or anything else this way, and (for me at least) it's usually snappier than running a browser in X2go (might be the mac client or my failure to configure things properly :-))<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Aug 19, 2019 at 12:19 PM Predrag Punosevac <<a href="mailto:predragp@andrew.cmu.edu">predragp@andrew.cmu.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Michael Andrews <<a href="mailto:mbandrews@cmu.edu" target="_blank">mbandrews@cmu.edu</a>> wrote:<br>
<br>
> Hi Predrag,<br>
> <br>
> Does it help with the firewall issue if I have a separate tunnel from my<br>
> local machine to <a href="http://bash.autonlab.org" rel="noreferrer" target="_blank">bash.autonlab.org</a> and another one from the gpu machine to<br>
> <a href="http://bash.autonlab.org" rel="noreferrer" target="_blank">bash.autonlab.org</a>?<br>
<br>
<br>
No makes it more complicated<br>
<br>
> <br>
> Does anyone else use jupyter notebooks remotely?<br>
> <br>
<br>
Yes using X2go as explained during the orientation.<br>
<br>
Predrag<br>
<br>
> On Fri, Aug 16, 2019 at 3:09 PM Predrag Punosevac <<a href="mailto:predragp@andrew.cmu.edu" target="_blank">predragp@andrew.cmu.edu</a>><br>
> wrote:<br>
> <br>
> > Ok I think I am getting what is happening here. You are essentially<br>
> > using reverse ssh proxy as a VPN tunnel and then run Browser through<br>
> > it. That is going to be very slow and it is more or less the same<br>
> > thing you would do with<br>
> ><br>
> > ssh -Y -o "ProxyCommand ssh <a href="mailto:username@bash.autonlab.org" target="_blank">username@bash.autonlab.org</a>" blabla<br>
> ><br>
> > What I am saying is try to use X2Goclient to connect via<br>
> > <a href="http://bash.autonlab.org" rel="noreferrer" target="_blank">bash.autonlab.org</a> proxy to a computing node of your liking and then<br>
> > start the browser in X2Goclinent custom (openbox) session. That would<br>
> > work in real time. My only concern is that in the past week or two I<br>
> > and Rob were getting blacklisted by CMU firewall for using NX. Let me<br>
> > think little bit more about the problem. I am surprised nobody wrote a<br>
> > server mode for Jypiter notebook like the one there is for Rstudio.<br>
> ><br>
> > Predrag<br>
> ><br>
> > On Fri, Aug 16, 2019 at 1:39 PM Michael Andrews <<a href="mailto:mbandrews@cmu.edu" target="_blank">mbandrews@cmu.edu</a>> wrote:<br>
> > ><br>
> > > Hi all,<br>
> > ><br>
> > > Is there a way to get remote access to a jupyter notebook running on one<br>
> > of the gpu machines without using a reverse ssh (i.e.<br>
> > <a href="https://medium.com/@sankarshan7/how-to-run-jupyter-notebook-in-server-which-is-at-multi-hop-distance-a02bc8e78314" rel="noreferrer" target="_blank">https://medium.com/@sankarshan7/how-to-run-jupyter-notebook-in-server-which-is-at-multi-hop-distance-a02bc8e78314</a>)<br>
> > as this apparently violates firewall rules?<br>
> > ><br>
> > > Thanks,<br>
> > > Michael<br>
> ><br>
</blockquote></div><br clear="all"><br>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><b>Anthony Wertz</b><div>Research Programmer and Analyst<br>Robotics Institute - Auton Lab<br>Carnegie Mellon University<br><a href="mailto:awertz@cmu.edu" target="_blank">awertz@cmu.edu</a></div></div></div>