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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南