Using port forwarding, from the client browser (verified with Chrome on Windows 10 Pro), Supercomputer ITO I will introduce how to connect to Jupyter Notebook (JupyterLab is also possible) started with the login node of). This makes it possible to plot the calculation results on the supercomputer as they are, which is very convenient. The client uses MobaXterm. This method is not limited to supercomputer use, but is a general method for connecting to Jupyter started on the server from the client browser using port forwarding. I referred to this material.
Click Settings-> Configuration-> SSH
in MoberXterm. Check ʻUse internal SSH agent "MobAgent" of
SSH agentsat the bottom, click the
cross mark to the right of the box below it, and add the private key (extension ppk). Then click the ʻOK button
.
In addition, it is a good idea to check SSH keepalive
in Settings-> Configuration-> SSH
of MobaXterm to prevent SSH from being cut off due to timeout.
These tasks need to be done only once.
Start Jupyter Notebook without a browser (--no-browser
) at the login node of the supercomputer.
$ jupyter notebook --ip=127.0.0.1 --port=8888 --no-browser
As a result, the following display will appear near the end. Copy and paste this part into the URL of the client browser later.
http://127.0.0.1:8888/?token=...
In the case of JupyterLab, it will start in the same way.
$ jupyter lab --ip=127.0.0.1 --port=8888 --no-browser
Click +
next to the MobaXterm tab to open a new terminal. This is called a local terminal. In this local terminal do the following: However, m00000a
is a user account.
ssh -o ProxyCommand='ssh -W %h:%p %[email protected]' ito.cc.kyushu-u.ac.jp -l m00000a -L 8888:localhost:8888
After waiting for a while, the supercomputer terminal will appear, so wait until then.
Paste the URL (http://127.0.0.1:8888/?token=...
) that appeared when you started Jupyter on the login node into the URL of the client browser to access it. Jupyter will now appear in the client's browser.
Note: When copying a URL with MobaXterm, just select the URL with the mouse. Not Ctrl-C.
Recommended Posts