User to connect to the instance

The correct user to connect to the ec2 here is “ec2-user” not “ubuntu” user, as the previous question the instructions was to use the default “ami”
VPC lab in aws crash course

Can you please share the lab link?

@moustafaroushdy1

The user used for SSH depends on the VM’s operating system. For Ubuntu, the default user is ubuntu, and for Amazon Linux, the default user is ec2-user.