I can't use the key to connect to the host using OPEN SSH and PuTTY of WINDOWS. Can anyone help me?

-1

I tried to use all methods, including using Windows and Ubuntu, but none of them can successfully connect to the EC2 host through SSH, can you help me? I can't use the key to connect to the host using OPEN SSH and PuTTY of WINDOWS. I have tried many times according to the instructions.

arthur
質問済み 1年前357ビュー
10回答
0

I have tried all the methods, including using LINUX to change the file permissions of the key and connecting from LINUX. Can you guide me?

arthur
回答済み 1年前
  • if you tried all methods including EC2 Serial console etc. and with SSH you cannot connect?

    Maybe it is related with your internal firewall if the instance is still responsive

    You can create a support ticket to the AWS Support directly.

0

Hi, use of the ssh command from your Ubuntu machine will be the easiest. For that, you need to download the .pem file of the EC2 keypair used when your EC2 instance was created.

Then command will be:

ssh -i /path/key-pair-name.pem instance-user-name@instance-public-dns-name

See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AccessingInstancesLinux.html#AccessingInstancesLinuxSSHClient

I would suggest that you start by connecting to your EC2 instance directly from AWS console by using instance connect. See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide//ec2-instance-connect-methods.html

Good tutorial for Instance Connect: https://www.youtube.com/watch?v=lxSNeF7BAII

Hope it helps!

Didier

profile pictureAWS
エキスパート
回答済み 1年前
0

The strange thing is that I have tried them all~ but I can’t log in with SSH, whether it’s OPENSSH or PuTTY, it’s the same in WINDOWS and Ubuntu, even EC2 Instance Connect doesn’t work.

arthur
回答済み 1年前
0

I use EC2 Instance Connect, but Failed to connect to your instance Error establishing SSH connection to your instance. Try again later. I made sure to open port 22

arthur
回答済み 1年前
0

https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/TroubleshootingInstancesConnecting.html

There is a full troubleshoot document provided by amazon. Check your error if it aligned one them

also

Amazon EC2 instances support the use of EC2 Serial Console, which helps you troubleshoot boot issues, network configuration, and SSH configuration issues. The EC2 Serial Console for Linux provides access to the serial port of your EC2 instances for text-based sessions.

profile picture
エキスパート
回答済み 1年前
0

I have tested everything, including the methods found by Google, and youtube teaching videos, but I still can’t connect

arthur
回答済み 1年前
0

Are you able to confirm if your trying to connect to the Private or Public IP address of the EC2

Thanks

profile picture
エキスパート
回答済み 1年前
0

Even when I use Connect using EC2 Instance Connect, I get the following message, I make sure SSH port 22 is open. Failed to connect to your instance Error establishing SSH connection to your instance. Try again later.

arthur
回答済み 1年前
0

The subnet where the EC2 is located. What’s the default route?

It will need to be 0.0.0.0/0 to and IGW

profile picture
エキスパート
回答済み 1年前
0

I am wondering if it is related to the use of a free plan. I followed the instructional video on YOUTUBE step by step, but I still can’t connect through SSH. I have SSH by default, and I have opened all the TCP ports. But PING can't reach the public IP.

arthur
回答済み 1年前

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

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

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

関連するコンテンツ