gpt4 book ai didi

amazon-web-services - 尽管所有安全组都打开,但无法从本地计算机中的 SQL 工作台访问 AWS redshift (EC2-classic)

转载 作者:可可西里 更新时间:2023-11-01 02:39:25 26 4
gpt4 key购买 nike

这个问题不一样为:AWS EC2 and Redshift Security group connection error

我正在尝试从 SQL 访问我的 RedShift(使用 EC2-classic 而不是使用 VPC)我本地计算机上的工作台。我的 redshift 中使用的 EC2 安全组允许:

所有 TCP,

所有 UDP,

所有 ICMP

来源 0.0.0.0/0

通过端口号 0-65535

它仍然显示“连接被拒绝。请检查主机名和端口是否正确以及邮局主管是否正在接受 TCP/IP 连接”。

我错过了什么?




Redshift 集群安全组屏幕

Redshift cluster security group screen




EC2 安全组屏幕

EC2 security group screen




最佳答案

好吧,多亏了 RahulPathak 的一些及时推文,他说:

推文 1 - link to tweet :

security group enables access from EC2 instances. You need CIDR rules for your local machine

推文 2 - link to tweet :

security group only counts for ec2 instances. you’ll need CIDR rules on the cluster for local machine.

因此,转到您的 Redshift 集群安全组页面,并为您的集群安全组授权一个新的 CIDR/IP 连接类型。然后根据安全设置的需要添加 CIDR/IP 值。


进一步搜索后,找到了相关 AWS 文档 * in this page *它说:

If you attempt to connect to the cluster from a client tool outside of the network that the cluster is in, you must add an ingress rule to the cluster security group for the CIDR/IP that you are connecting from...

关于amazon-web-services - 尽管所有安全组都打开,但无法从本地计算机中的 SQL 工作台访问 AWS redshift (EC2-classic),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25958742/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com