简体   繁体   English

使用SSH的连接EC2实例操作超时错误

[英]Connection ec2 instance operation timeout error using ssh

After creating a new instance,I am trying to access my instance like below: 创建新实例后,我尝试按以下方式访问我的实例:

ssh -i private_key.pem root@my_instance_public_domain

but the operation is timing out,I have updated the private key file permission using 但操作超时,我已使用更新了私钥文件权限

chmod 400

and also edited default security group by adding a new in bound rule,selecting SSH and source Ip as 1.12.34.0/32 并通过添加新的绑定规则来编辑默认安全组,选择SSH并将源IP作为1.12.34.0/32

but getting port 22: Operation timed out . 但是获取端口22:操作超时。

what I am missing. 我所缺少的。

Thanks in advance 提前致谢

为了进行测试,您可能需要将规则设置为0.0.0.0/0。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM