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?

已提问 1 年前234 查看次数
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.

profile picture
已回答 1 年前

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

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

回答问题的准则