【问题标题】:AWS ec2 git clone or pull not working and no error messageAWS ec2 git clone 或 pull 不工作并且没有错误消息
【发布时间】:2016-05-22 18:14:10
【问题描述】:

我正在尝试在 AWS ec2 中克隆一个 bitbucket 存储库。但它不起作用。并且没有给出任何错误信息。

它只是给消息是

Cloning into 'repo_name'...

我也试过 telnet 命令。

telnet bitbucket.org 443

但它也显示消息

Trying 104.192.143.3...
Trying 104.192.143.1...
Trying 104.192.143.2...
telnet: Unable to connect to remote host: Connection timed out

我已看到已分配给此 ec2 的安全组。

入站

HTTP TCP 80 0.0.0.0/0
SSH TCP 22 0.0.0.0/0

出站

All traffic All All 0.0.0.0/0

当我 ping www.google.com 它的捐赠

PING www.google.com (216.58.196.68) 56(84) bytes of data.
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=1 ttl=55 time=9.41 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=2 ttl=55 time=9.21 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=3 ttl=55 time=9.23 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=4 ttl=55 time=9.32 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=5 ttl=55 time=9.17 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=6 ttl=55 time=9.12 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=7 ttl=55 time=9.26 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=8 ttl=55 time=9.29 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=9 ttl=55 time=9.24 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=10 ttl=55 time=9.40 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=11 ttl=55 time=9.12 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=12 ttl=55 time=9.57 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=13 ttl=55 time=9.22 ms
64 bytes from kul01s09-in-f4.1e100.net (216.58.196.68): icmp_seq=14 ttl=55 time=9.16 ms

【问题讨论】:

  • 你能从你的 EC2 ping google 吗?
  • 实例在私有子网还是公有子网中?您可以从您的实例 ping www,google.com 吗?
  • 是的,我可以 ping www,googe.com 并 PING www.google.com (216.58.196.68) 56(84) 字节的数据。来自 kul01s09-in-f4.1e100.net (216.58.196.68) 的 64 个字节:icmp_seq=1 ttl=55 time=9.41 ms 来自 kul01s09-in-f4.1e100.net (216.58.196.68) 的 64 个字节:icmp_seq=2 ttl =55 次=9.21 毫秒
  • 你能在 443 端口上 telnet 到 google.com 吗?

标签: git amazon-web-services amazon-ec2 bitbucket aws-security-group


【解决方案1】:

按照建议在入站中允许 HTTPS。

http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_Appendix_NACLs.html

如果这不起作用,请尝试使用弹性 IP

【讨论】:

    猜你喜欢
    • 2014-09-30
    • 1970-01-01
    • 2020-12-03
    • 2011-08-13
    • 2013-01-27
    • 1970-01-01
    • 2013-10-14
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多