Access AWS EC2 Instance ubuntu by ssh losted.

0

I'm new in aws, I've in my aws account an ubuntu by my instance created, I was intalling some package in my instance for use of my project, until yesterday I had ssh connection with my instance but today I lost my connection, I don't have any error message or other thing to explain this case, what I must to do to solve this? Thanks and best regards.

質問済み 2ヶ月前98ビュー
5回答
1

Hello.

Have you tried restarting the EC2 instance?
Please note that when you stop and start EC2, the public IP address will change unless you have set an Elastic IP address.
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/troubleshoot-unreachable-instance.html

Also, isn't the CPU usage rate high?
In other words, I think it is necessary to check whether the load on the EC2 instance is so high that SSH is not possible.
You can check CPU usage from CloudWatch metrics.

Just to be sure, make sure that SSH is allowed in the inbound rules of the EC2 security group.
Also, although some configuration is required, try connecting with Systems Manager Session Manager.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-prerequisites.html

profile picture
エキスパート
回答済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
profile picture
エキスパート
レビュー済み 2ヶ月前
0
承認された回答

Trying to solve my problem I deleted my ec2 instance and recreate again, after created the instance I initiated the installation of the packages first Java package, this installation was allright, the second package was mysql-server apparently is ok but after to allow port 3306 to remote access the problem return again, my instance is defined with ubuntu linux.

回答済み 2ヶ月前
0

Hi, after reboot my EC2 Instance the problem still the same.

回答済み 2ヶ月前
0

Hi Riku, yes I tried many times, stop and start, reboot with the same problem.

回答済み 2ヶ月前
0

Hi, I solved my problem! Solution: 1 - delete my EC2 instance 2 - recreate my EC2 instance 3 - install ufw 4 - allows port/tcp necessary Thanks.

回答済み 2ヶ月前

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ