in the downloads folder run this in terminal:
chmod 400 private_key.pem
mv private_key.pem ~/.ssh
ls ~/.ssh
ls alrt ~/.ssh
ssh -i "private_key.pem" yourpublicdnsregion
ssh -i "private_key.pem" ec2-user@ec2-52-15-205-168.us-east-2.compute.amazonaws.com
EC2 tutorial
Your vpc stack name is a parent dependant so insert that and your private key is the KeyName parm.
ssh -i ~/.ssh/private_key.pem ec2-user@add-the-ip
sudo
sudo yum update -y
#Install git in your EC2 instance:
sudo yum install git -y