Can't ssh to AWS EC2: Identity file not accessible

前端 未结 14 906
予麋鹿
予麋鹿 2021-02-02 06:08

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         


        
14条回答
  •  时光取名叫无心
    2021-02-02 06:38

    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

提交回复
热议问题