问题
I am trying to connect to a redis server hosted on AWS. I used my private key to ssh into the instance, install and run the server. Now I wanted to access the server using the public dns of the instance and the port 6379 (on which the server is running). I have added the port 6379 to security group with 0.0.0.0/0
and ::/0
but when I telnet on this port, I get:
Trying [PUBLIC-DNS]...
telnet: connect to address [PUBLIC-DNS]: Connection refused
telnet: Unable to connect to remote host
Any help will be really appreciated.
回答1:
You can refer this troubleshooting document from AWS. Furthermore, If you have enabled VPC Flow Logs, then you can trace vpc flow logs to check, which aws resource is rejecting the network traffic. For VPC flow logs information please refer this document from AWS.
来源:https://stackoverflow.com/questions/65339476/cannot-connect-to-an-open-port-ec2-instance