내용으로 건너뛰기

Brand new Ubuntu instance/keys won't accept SSH keys

0

Created a brand new Ubuntu instance from the marketplace. Created brand new set of key pairs and exported them as .pem (for use with Putty) Created a brand new elastic IP and associated it with the new instance. Left the security group settings at default (until I've got it up and running as I want) SSH and HTTPs enabled from anywhere.

Opened Putty, put in the static IP Added the .pem file under Auth > SSH Clicked 'Connect'. Prompted for username (default is ubuntu) Then get error message: 'Server refused our key' No supported authentication methods available

The documentation on why this could happen is as much use as a waterproof teabag. This is a BRAND new instance, setup and configured with all the defaults. So why is it refusing the keys made during setup?

Can someone spare me the ongoing frustration and tell me what's going on please? Thank you so much.

  • Can you share the AMI ID you used? I'd like to try to reproduce this.

  • For PuTTY, I always use PPK. Can you try this?

질문됨 4년 전615회 조회

1개 답변
0

Hi,

PuTTY doesn't natively support the private key format (.pem) generated by Amazon EC2. You must convert your private key into a .ppk file before you can connect to your instance using PuTTY. Use the PuTTYgen tool for this conversion.

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-ppk-pem-conversion/

Or you can use Linux, and never use Putty anymore, just straight SSH.

답변함 4년 전

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

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