Can't SSH into an instance that was accessible only hours ago.

0

I can't SSH into an EC2 t2 micro instance using Putty WinSCP or EC2 instant connect even though I haven't changed any of my credentials, the instant was accessible only an hour ago and the instance state is showing as running. When I try to access it I simply get 'Establishing connection' followed by 'Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.' Uncertain how to go about figuring out what the problem is.

Hadam
질문됨 8달 전185회 조회
1개 답변
0

Hello.

Am I correct in assuming that you have not made any changes to the security group or network ACL settings?
Can you also confirm that the global IP address you are using has not changed?
The error message is generated when an attempt to connect using EC2 Instance Connect fails.
A common cause of this error is misconfiguration of security groups or network ACLs.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-connect-set-up.html

It may also be possible to connect by setting the time on your terminal to the correct time as shown below.
https://repost.aws/questions/QUXwRRF1F1Slu6Dx7sG8rBJg/ec2-error-establishing-ssh-connection-to-your-instance-please-wait-and-try-again-later#ANjOtzKw9BSV2WGS-_GjE1sA

Try stopping and starting EC2, as this may fix the problem.

profile picture
전문가
답변함 8달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠