- 参考此处
To make the connection faster, you can follow below instructions:
- First, make sure you install Jupyter notebook in both remote (working station in your offcie) and local (your home computer)
- In remote host, open the terminal, change directory to where you have your notebooks and type:
jupyter notebook --no-browser --port=8889# you should leave the this open
- In your local computer, open MS-DOS cmd (if using Windows) or Unix terminal, then type:
# make sure to change `username` to your real username in remote host
# change `your_remote_host_name` to your address of your working station
# Example: ssh -N -f -L localhost:8888:localhost:8889 guest@192.168.0.132
ssh -N -f -L localhost:8888:localhost:8889 username@your_remote_host_name
- Now open web browser (google chrome, firefox, …) and type:
localhost:8888
you will see your notebooks in your given directory - If Token needed, go to remote server, type output of this command:
jupyter notebook list|tail -n 1|cut -d = -f 2|cut -d ' ' -f 1