[英]Cannot obtain a trusted connection when hosting Jupyter Notebook on AWS EC2 instance
[英]Cannot connect to jupyter notebook on Amazon AWS Ec2 instance
我正在運行 Amazon Linux 2 AMI EC2 實例。 在實例上,我可以安裝 anaconda。 設置 jupyter notebook 配置等后,我嘗試使用來自 nohup.out 的 url https://ip-xxx-xx-x-xx.us-east-2.compute.internal:8888/
在 Chrome 上打開 jupyter notebook。 該鏈接從未奏效。
2.這是我的 jupyter notebook 配置:
c = get_config()
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.certfile = u'/home/ec2-user/certs/mycert.pem'
c.NotebookApp.ip = '*'
c.NotebookApp.open_browser = False
# Your password below will be whatever you copied earlier
c.NotebookApp.password = u'xxxxx'
c.NotebookApp.port = 8888
3.這是運行nohup jupyter notebook
后的日志:
[I 15:51:03.957 NotebookApp] Writing notebook server cookie secret to /home/ec2-user/.local/share/jupyter/runtime/notebook_cookie_secret
[I 15:51:04.525 NotebookApp] JupyterLab extension loaded from /home/ec2-user/anaconda3/lib/python3.8/site-packages/jupyterlab
[I 15:51:04.525 NotebookApp] JupyterLab application directory is /home/ec2-user/anaconda3/share/jupyter/lab
[I 15:51:04.528 NotebookApp] Serving notebooks from local directory: /home/ec2-user/Notebook
[I 15:51:04.528 NotebookApp] The Jupyter Notebook is running at:
[I 15:51:04.528 NotebookApp] https://ip-xxx-xx-x-xx.us-east-2.compute.internal:8888/
[I 15:51:04.528 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
我認為這應該是一個安全設置問題。 但我已經允許來自任何地方的 SSH 流量,也允許來自互聯網的 HTTPs 流量。
以上有什么問題嗎? 如果您有任何線索,請分享。 謝謝!!
您是否嘗試使用您的 EC2 實例上列出的公共 dns ? 這是考慮到您已在具有 Internet 網關的公共子網中配置了 EC2。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.