EC2 - unable to SSH

0

Hi all,

I just created a new t2.medium EC2 instance using the Amazon Linux 2023 AMI and setup a new SSH key pair.

I tried connecting to the public ip using ec2-user@server-ip.com but it rejects my key. It does seem to work when connecting via the web interface so not sure what I'm doing wrong.

I'm using putty to connect and have provided the .ppk file in the Connection-> SSH -> Auth options

Appreciate any help.

Thanks

Jat
已提問 8 個月前檢視次數 242 次
3 個答案
0
已接受的答案

That put me in the right direction but didn't initially work.

However I updated putty from 0.72 -> 0.79 and now it works with the Amazon provided key.

Looks like the type of key provided by amazon was newer than my version of putty recognized, I guess

Jat
已回答 8 個月前
0

I had the same issue with putty and it was down to the Key Version from AWS being incompatable with putty.

I had to import the key into PuttyGen and re-save the Key as it converts it from AWS's version to Putty version

profile picture
專家
已回答 8 個月前
0

Have you checked the security group settings for your EC2 instance? Sometimes, the inbound rules might not allow SSH traffic. Also, ensure that the 'destiny 2 boosting' key pair you're using is the correct one associated with the instance.

Jabrams
已回答 8 個月前

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

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

回答問題指南