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

前端 未结 14 903
予麋鹿
予麋鹿 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:26

    There are multiple reasons to occurring this error. 1 you are trying to access from whatever path which is not match 2 either you do not have permission to do access 3 if you do not have access to that particular file you can try to change the mode of permission

    like the above solution

    sudo chmod 400 /Users/Skeniver/Keepass/skeniver.pem
    

    even if not then you can co-ordinate with the network or your cloud team whoever manage your cloud server

提交回复
热议问题