Amazon web services 连接到EC2实例上运行的jupyter笔记本时出现问题

Amazon web services 连接到EC2实例上运行的jupyter笔记本时出现问题,amazon-web-services,amazon-ec2,jupyter-notebook,Amazon Web Services,Amazon Ec2,Jupyter Notebook,我正在尝试使用运行在ec2实例上的jupyter笔记本 我从这里开始遵循以下步骤: 我通过配置文件在所有IP上启用了笔记本。 下面是运行笔记本服务器的图片 我不明白为什么我无法连接这里是我的配置文件的内容: c = get_config() # Notebook config this is where you saved your pem cert c.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem' # Run on al

我正在尝试使用运行在ec2实例上的jupyter笔记本 我从这里开始遵循以下步骤:

我通过配置文件在所有IP上启用了笔记本。 下面是运行笔记本服务器的图片

我不明白为什么我无法连接这里是我的配置文件的内容:

c = get_config()

# Notebook config this is where you saved your pem cert
c.NotebookApp.certfile = u'/home/ubuntu/certs/mycert.pem' 
# Run on all IP addresses of your instance
c.NotebookApp.ip = '*'
# Don't open browser by default
c.NotebookApp.open_browser = False  
# Fix port to 8888
c.NotebookApp.port = 8888
当我尝试从本地浏览器访问它时,如下所示:

https://ec2-xx-xx-xxx-xxx.us-west-2.compute.amazonaws.com:8888

我无法连接

只需转到安全组,找到您的ec2正在使用的VPC以及入站规则中我的IP的所有流量

解决了。在通过允许我的IP的所有流量修改安全组后,我能够连接。