Can anyone tell me why it refused key?!

prem:
can anyone tell me why it refused key??!

Jeffrey Osamor:
Are you in the right file path where you pem key is stored?

Tanuj Sharan:
• Check if port 22 is open
• Browse to the the directory which has the PEM file
• Copy the SSH command from AWS EC2 Console and paste it in the terminal

Jeffrey Osamor:
Also clear out your end user session for your instance on your mobaxterm.