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?

asked a year ago214 views
1 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions