简体   繁体   中英

AWS EC2 Operation timeout after installing SSl

I installed ssl certificate couple of days back using Let's Encrypt.

Before, that I was easily able to login and do everything.

Now, Whenever I try to login it gives me following error

ssh: connect to host 172.31.XX.XX port 22: Operation timed out

I am using an ubuntu instance with node server and nginx. I am pretty sure this happened because I was in a rush and I copied-pasted commands before understanding what they do..

Any help would be very much appreciated. (I ran all my commands using ubuntu cli)

What I have done

  • Checked my inbound and outbound rules
  • Checked If I am typing the correct IP address.

I haven't changed any of these settings in a while and the last action which I performed (and could recall) was setting up ssl.

在此处输入图片说明

Based on the comments.

172.31.XX.XX is a private IP address , accessible only from within a VPC or over VPN.

To connect from outside of AWS, a public IP of an instance should be used. To ensure static public IP address, an Elastic IP address can be used. Otherwise, after each restart of an instance, it will have new public IP address.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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