Permission denied (publickey). new ec2 instance

I just created a new ec2 instance. Generated the keys and created the connection. Now when I try to connect I get: Permission denied (publickey) Steps I followed: ssh-keygen -t rsa -f my_rsa_key aws2 ec2-instance-connect send-ssh-public-key –instance-id i-084434ewa3e171039 –availability-zone us-east-2b –instance-os-user ec2-user –ssh-public-key file:///aws_ssh/my_rsa_key.pub { “RequestId”: “dd452b0f-89c3-4a01-82ea-c6a55934ec3f”, “Success”: true } [root@mail]# nmap 13.34.27.15 Starting Nmap…