Can't SSH to EC2

0

I am struggling to SSH to my instance and repeatedly asks me for a password.EVEN THOUGH I NEVER MADE ONE :c I'm doing an assignment for class and my teacher specifically said to choose "Proceed without key pair" since we opened all ports and used 0.0.0.0/0. I opened my SSH connections with 0.0.0.0/0 as well. I can't connect no matter what I use. I've tried Instance Connect, Putty, and Terminal but they all uniformly ask me for a password... I've read while researching for solutions that a key pair is needed for a SSH connection. I can't create a new instance since, my teacher asked us to attach specific files and the current instance was migrated from Bitnami. Please help me I have been big struggling for hours and I am about to mental breakdown. TY. Enter image description here Enter image description here

已提問 1 年前檢視次數 299 次
1 個回答
0

If you don't have a key pair associated to your instance, the connection using SSH is not possible (Amazon EC2 key pairs and Linux instances).

One alternative is to use the AWS Systems Manager Session Manager service. For that the AWS SSM agent must be installed in your instance (many of the common AWS instances have it already installed by default). For more info check the AWS Session Manager prerequisites.

Another alternative is to add a new key pair to your existing instance. For this, check the following guide: I've lost my private key. How can I connect to my Linux instance?.

profile pictureAWS
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南