【问题标题】:Connect to EC2 Instance - Bitnami/Django连接到 EC2 实例 - Bitnami/Django
【发布时间】:2013-08-27 01:16:13
【问题描述】:

我是 Amazon Cloud 的超级新手,没关系 ec2,我正在关注 amazon documentation,其中指出:

  1. 在命令行 shell 中,change directories to the location of the private key file 您在启动实例时创建。

    使用 chmod 命令确保您的私钥文件不能公开查看。例如,如果您的私钥文件的名称是 my-key-pair.pem,您将使用以下命令:

  2. chmod 400 my-key-pair.pem

  3. ssh -i my-key-pair.pem ec2-user@ec2-198-51-100-1.compute-1.amazonaws.com

我正在使用

ssh -i myvaluepair.pem bitnami@<instancehere>.compute-1.amazonaws.com

我在第 3 步失败,出现以下错误:

ssh: connect to host <instancehere>.compute-1.amazonaws.com port 22: Operation timed out

我也尝试过重新启动 AMI - 有什么想法吗?我只是想在我的 amazon ec2 实例上连接到 bitnami。

我有以下安全政策:

【问题讨论】:

    标签: amazon-web-services ssh amazon-ec2 bitnami amazon-ami


    【解决方案1】:

    问题在于:

    应该是:

    22 (SSH)        0.0.0.0/0
    80 (HTTP)       0.0.0.0/0
    

    并且不是 sg-e925a882

    我是 using this link 来正确设置 bitnami-djangostack-1.5.1。实例。

    【讨论】:

    • 您要小心向所有人开放端口 22。如果可能,您应该将其锁定为您使用的 ips。
    猜你喜欢
    • 1970-01-01
    • 2014-02-01
    • 1970-01-01
    • 2021-05-07
    • 1970-01-01
    • 2017-06-21
    • 2013-05-26
    • 2013-12-09
    相关资源
    最近更新 更多