Cannot connect to an open port ec2 instance

三世轮回 提交于 2021-01-29 10:25:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!