Getting remote access to jupyter notebook
Anthony Wertz
awertz at cmu.edu
Mon Aug 19 12:29:50 EDT 2019
I almost always use a tunnel, configured similar to what Predrag specified.
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):
Host bash
Hostname bash.autonlab.org
UseKeychain yes
Host gpu2
Hostname gpu2
ProxyCommand ssh bash exec nc %h %p
UseKeychain yes
And with that I can forward a port from GPU2 as if I could directly see the
machine:
ssh -L <A>:localhost:<B> gpu2
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 :-))
On Mon, Aug 19, 2019 at 12:19 PM Predrag Punosevac <predragp at andrew.cmu.edu>
wrote:
> Michael Andrews <mbandrews at cmu.edu> wrote:
>
> > Hi Predrag,
> >
> > Does it help with the firewall issue if I have a separate tunnel from my
> > local machine to bash.autonlab.org and another one from the gpu machine
> to
> > bash.autonlab.org?
>
>
> No makes it more complicated
>
> >
> > Does anyone else use jupyter notebooks remotely?
> >
>
> Yes using X2go as explained during the orientation.
>
> Predrag
>
> > On Fri, Aug 16, 2019 at 3:09 PM Predrag Punosevac <
> predragp at andrew.cmu.edu>
> > wrote:
> >
> > > Ok I think I am getting what is happening here. You are essentially
> > > using reverse ssh proxy as a VPN tunnel and then run Browser through
> > > it. That is going to be very slow and it is more or less the same
> > > thing you would do with
> > >
> > > ssh -Y -o "ProxyCommand ssh username at bash.autonlab.org" blabla
> > >
> > > What I am saying is try to use X2Goclient to connect via
> > > bash.autonlab.org proxy to a computing node of your liking and then
> > > start the browser in X2Goclinent custom (openbox) session. That would
> > > work in real time. My only concern is that in the past week or two I
> > > and Rob were getting blacklisted by CMU firewall for using NX. Let me
> > > think little bit more about the problem. I am surprised nobody wrote a
> > > server mode for Jypiter notebook like the one there is for Rstudio.
> > >
> > > Predrag
> > >
> > > On Fri, Aug 16, 2019 at 1:39 PM Michael Andrews <mbandrews at cmu.edu>
> wrote:
> > > >
> > > > Hi all,
> > > >
> > > > Is there a way to get remote access to a jupyter notebook running on
> one
> > > of the gpu machines without using a reverse ssh (i.e.
> > >
> https://medium.com/@sankarshan7/how-to-run-jupyter-notebook-in-server-which-is-at-multi-hop-distance-a02bc8e78314
> )
> > > as this apparently violates firewall rules?
> > > >
> > > > Thanks,
> > > > Michael
> > >
>
--
*Anthony Wertz*
Research Programmer and Analyst
Robotics Institute - Auton Lab
Carnegie Mellon University
awertz at cmu.edu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.srv.cs.cmu.edu/pipermail/autonlab-users/attachments/20190819/f582e617/attachment.html>
More information about the Autonlab-users
mailing list