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개 답변

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.


답변함 2년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠