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
posta 8 mesi fa240 visualizzazioni
3 Risposte
0
Risposta accettata

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
con risposta 8 mesi fa
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
ESPERTO
con risposta 8 mesi fa
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
con risposta 8 mesi fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande