无法连接到开放端口ec2实例 [英] Cannot connect to an open port ec2 instance

查看:125
本文介绍了无法连接到开放端口ec2实例的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试连接到AWS上托管的Redis服务器.我使用私钥将ssh插入实例,安装并运行服务器.现在,我想使用实例的公共dns和端口6379(服务器在其上运行)访问服务器.我已将端口6379添加到具有 0.0.0.0/0 ::/0 的安全组中,但是当我在该端口上进行telnet时,会得到:

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

任何帮助将不胜感激.

推荐答案

您可以参考来自AWS的rel ="nofollow noreferrer">此故障排除文档.此外,如果启用了VPC流日志,则可以跟踪vpc流日志以检查哪个aws资源正在拒绝网络流量.有关VPC流日志信息,请参考

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.

这篇关于无法连接到开放端口ec2实例的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆