Failed to log into EC2 (AWS) using Putty

I want to log in to instance i created on Amazon Web Services. I get the following error.

login as: root Server refused our key Using keyboard-interactive authentication. Password: 

I do not know what to enter as a password. I gave a secret key created from PuttyGen.

+6
source share
3 answers

The generated SSH key was incorrect. The key event is SSH 1. not SSH2. For me, this worked for root.

+3
source

Amazon AMI username depends on AMI creator,

for Amazon AMI, user ec2 user for Ubuntu AMI, user ubuntu

You can search with ami-id to find out what is the default username for AMI. Make sure that the key you are using is the private key for the public key that you add to the key binding when creating the instance.

+15
source

Try logging in as an ec2 user. In the instances I tried, the root input was disabled by default.

+2
source

Source: https://habr.com/ru/post/894264/


All Articles