Connect to Linux instance using EC2 Instance Connect , select the EC2 Instance Connect tab, Get the public DNS name and user name to connect to your instance.
Connect to your Linux instance from Windows using PuTTY , Open Putty .
Select Browse and choose Private key file for authentication.
Connect Linux instance from Windows using Putty.
For Amazon Linux 2, the default user name is “ec2-user”