参考该文:
https://ljvmiranda921.github.io/notebook/2018/01/31/running-a-jupyter-notebook/
对于aws的连接:
1. aws的ubuntu系统的用户名是ubuntu,参考:https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/putty.html
2. aws的连接是使用密码文件,即.pem文件的,ssh连接时要用一下语句
ssh -i "your pem file path" -N -f -L localhost:YYYY:localhost:XXXX remoteuser@remotehost
% remoteuser@remotehost:
% remoteuser is your user name in your host, here is ubuntu
% remotehost is the Public DNS (IPv4), which can be checked from aws website.
3. 登录jupyter notebook: https://localhost:8888, 然后在远程段获取相应的密码(token字符段)
4. 强烈建议直接使用jupterlab: https://localhost:8888/lab