
You may have to play with a combination of these on your machine to get it working. Also, -K indicates forwarding of Kerberos tickets, which you probably need to allow file access, so I kept it. Try dropping it and see if it still works, else you may have to keep it. You do have the -X option in your ssh connection string, which indicates X11 windowing (a type of remote desktop for linux).

This should connect you to my_pc_name and run the jupyter notebook server there.įinally go to your browser on your local machine and access: Then open another terminal and run: ssh -X -KX my_pc_name This should connect you to the jump server and do port forwarding between jump server and my_pc_name. Then open a new terminal and run: ssh -f my_pc_name -L 8889:localhost:8889 -N -K This connects your local machine to the jump server and does port forwarding.

Open a terminal and run: ssh -f -L 8888:localhost:8889 -N Try establishing two connected ssh tunnels like I would do this. It seems 'server' is your gateway server, and that 'my_pc_name' is accessible only from there. One solution could be to combine the two ssh log in steps to one.

The token that I get from step one, running the jupyter notebook will not work. Start your favorite browser on your laptop, paste the URL given by the jupyter-notebook (see slide ssh tunneling (1)) on Tetralith. Remote_user = username and remote_user = my_pc_name, I get an security error from the jupyter notebook asking for a token. What do I write for the second step, when I replace the first line of the first step by my longer log in procedure ? I can access the remote machine only in two steps ssh -X -KX my_pc_nameĪnd the jupyter notebook is only installed on my_pc_name. Log in remote machine ssh jupyter notebook -no-browser -port=8889Ģ.In a new terminal: ssh -N -L localhost:8888:localhost:8889 go to a browser and go to localhost:8888 create an ssh tunnel to a remote machine behind a firewall start a jupyter notebook server on this machine connect to this server from a browser running on your local machine to create and use jupyter notebooks It might take you 10 minutes to set everything up the first time, but it's worth it. I want to access a jupyter notebook via an SSH tunnel and follow this recipe ġ.
