跳至內容

Unable to connect to ec2 instance using Connect on console through ssh

0

I was able to connect to my ec2 instance earlier through Connect on console but now getting error while connecting. The security group is enabled for ssh on port 22 but still the error is coming. I had rebooted the instance as well.

Enter image description here

已提問 1 年前檢視次數 263 次
1 個回答
0

If you were previously able to connect to the EC2 instance via SSH but are now getting an error establishing the connection, Check the instance status: Verify that the instance is still in the "running" state.

• Check the security group: Ensure that the security group associated with the instance still has a rule allowing inbound SSH traffic (port 22) from your IP address or the IP address range you're connecting from.

• Check the key pair: Confirm that you are using the correct private key file to connect to the instance. The key pair must match the one that was used to launch the instance.

• Check the instance public IP or DNS name: Verify that you are using the correct public IP address or public DNS name of the instance to connect.

You can refer Connect using EC2 Instance Connect for further information

AWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。