EC2 instances will not accept a .pem key if it is publicly visible.
Since your .pem file is likely sitting on your Desktop or Downloads folder, it has a permission code of
That is not good enough for your server.
From How to Fix Permission error when ssh into aws ec2 instance
20.11.30