Search code examples
ubuntuamazon-ec2amazon-ami

What's the default user name to log into a new Ubuntu 22.04 LTS instance? (AWS EC2 created from AMI)


I spun up a new instance using this AMI:
099720109477/ubuntu/images/hvm-ssd/ubuntu-jammy-22.04-amd64-server-20220420

However, whenever I try to connect using putty I am prompted for a username. I enter "ubuntu" but I'm then disconnected with the message "Server refused our key" (see attached screenshot).

When I do everything the same using the 20.04 ami it works.

Working AMI from here:
099720109477/ubuntu/images/hvm-ssd/ubuntu-focal-20.04-amd64-server-20220419

The working version is exactly the same. Same EC2 settings (network settings, security group, keypair, etc) and same putty settings (just a different IP address).

I've tried everything I can think of, but cannot find a way to connect to the new 22.04 instance.

Do I simply have the wrong username (i.e. is it something other than "ubuntu")?


Solution

  • (Solution posted on behalf of the question author, to move it to the answer section).

    It turns out that the problem was just that I needed to upgrade to putty-0.77. The error message was sending me in the wrong direction.