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 个月前240 查看次数
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 个月前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则