How to Run Jupyter over SSH

Use port forwarding.

A command like this does the trick.

ssh -L 8222:localhost:8888 remote

where remote is the address of your remote host.

Then you can run jupyter on port 8888 in the remote session and work with the notebook on localhost:8222 in your browser. I just picked port 8222 at random, you can use any ports you like. 8888 is the port Jupyter tries to use by default, but you can change that.

If you want to do it automatically, I’m sure there’s a way to set it in your ssh config file.

Related Posts

How to Disable Disqus Ads on your Blog

Derivation of Reservoir Sampling

Fun with Python Iterators: Linked Lists Made Easy

Notes for November 11, 2018

Underrated Vim Option: undofile and undodir

Hot Take on Solo Travel: Starve

Alan Perlis

Book Notes: The Map of My Life by Goro Shimura


Way to remember the definition of local finiteness