On the server side, start your jupyter session:
- For jupyter lab:
jupyter-lab --no-browser --port <server_port>
- If juoyter notebook:
jupyter-notebook --no-browser --port <server_port>
On your local machine, use the following command:
ssh [-o ServerAliveCountMax=20 -o ServerAliveInterval=15] -N -f -L localhost:<local_port>:localhost:<server_port> user@server
Visit your local browser:
localhost:<local_port>