Failed to connect to your instance

0

Hi, i have done all the settings correctly and my SSh connection is also done, and at the end, its showing me this message:

Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.

Kindly help me out. . . Error

Asmat
質問済み 1ヶ月前392ビュー
1回答
0

Hi,

One of the potential reasons you are getting the error "Failed to connect to your instance Error establishing SSH connection to your instance" could be that you have not allowed SSH traffic from your IP address. To resolve this issue, you should update the inbound rules of the security group associated with your instance to allow SSH traffic on port 22 from your IP address.

If you already confirmed that the security group inbound rules are correctly configured to allow SSH traffic (TCP port 22) from your IP address, and you are still receiving the "Failed to connect to your instance Error establishing SSH connection to your instance" message, there could be a few other potential reasons such as Instance State: Ensure that your EC2 instance is in the "running" state. If the instance is in the "pending" state, wait for it to transition to "running" before attempting to connect. Public IP or DNS: Double-check that you are using the correct public IP address or public DNS name of your instance when attempting to connect via SSH.

Check out these documents for further reference:

How do I troubleshoot issues connecting to my EC2 instance using EC2 Instance Connect?

Authorize inbound traffic for your Linux instances

Connect to your Linux instance from Linux or macOS using SSH

I hope it helps

profile pictureAWS
BezuW
回答済み 1ヶ月前
profile picture
エキスパート
レビュー済み 1ヶ月前

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

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

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

関連するコンテンツ