I\'m unable to ssh to my EC2 server and am getting the error:
ssh -i /Users/Skeniver/Keepass/skeniver.pem ubuntu@xx.xxx.xx.xxx Identity file /Users/Skeniver/Kee
run the command from .ssh directory i.e/Users//.ssh and then execute the command ssh -v -i @
this worked for me after many failed attempt.
note: please make sure .pem file has necessary permission chmod 400 <.pem file> before executing the command