Unable to enter other created instances with putty, except for first instance


I've created an instance, created key-pair able to connect to it with putty. All my instances in the past worked fine, no key pair / putty client issue, my security groups are set with default open ssh accounts (open only to my ip which I've checked and matches my current ip)

2nd ec2 instance was created, created a new key pair, created all settings from scratch, added my_key.ppk to putty>Auth and now I'm not getting access, putty is throwing:

PuTTY Fatal Error

No supported authentication methods available (server sent: publickey)

Now i've already been through this => https://aws.amazon.com/premiumsupport/knowledge-center/linux-credentials-error/ It's basically saying problem stems from either:

  1. You're not connecting with the appropriate user name for your AMI when you negotiate an SSH session with an EC2 instance. OR 2. You're using the wrong private key when you negotiate an SSH session with an EC2 instance.

I'm neither, (1) doesn't apply since I don't use an AMI. I went through resolution and nothing was relevant or went through all of those and I'm on Windows 10 so I can't use the EC2 Serial Console.

I have opened several instances by now, created instances with new keys, then tried with an already existing key pairs. nothing. Any help at this point would be appreciated 🙏

  • Could you explain a little more about "I don't use an AMI"?

  • I connect to my aws acct with 2fa, I connect to my instances with putty authenticating with a key pair. I have never made an AMI account.

  • An AMI is the image that the instance is launched from; so I think we're talking about different things here.

1 Risposta

I've seen issues like this when the key has been copy/pasted and an editor has added line-breaks. Could this be the issue?

Also confused about AMIs (Amazon Machine Images) in this context but it could be you're using an image that needs a specific user name.


con risposta 2 anni 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