Getting "There was a problem connecting to your instance" when trying to reconnect to an EC2 instance

0

hi,

I'm launching an EC2 instance (Ubuntu20.04, t2.micro), on the first connect (ssh or "EC2 Instance Connect") it connects, then after a few minutes the ssh hangs, and trying to reconnect from ssh no longer work. Trying "EC2 Instance Connect" result in the above error. EC2 was created with the wizard with secuirty SSH /TCP / 22/ Custom 0.0.0.0/0. Using default VPC. Been trying for days to make since of it, but can't. Could use some help on the subject.

질문됨 2년 전566회 조회
1개 답변
0

The best suggestion I have is to contact our support team to see what is wrong here - it's not possible at this distance to see what the issue is.

However, my guess is that there is some process on the instance which is consuming all the resources (CPU, memory, etc.) and that is causing the instance to hang or for processes such as the SSH daemon to stop responding. Once you restart the instance, look in the logs to see what has been happening. If there isn't enough detail, you will need to enable additional logging or metric collection to see what is causing the issue. Again, just a guess.

profile pictureAWS
전문가
답변함 2년 전

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

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

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

관련 콘텐츠