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

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

    For your case just

    just execute the following command to change permission

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

    and then execute the command that will connect you to EC2

    ssh -i /Users/Skeniver/Keepass/skeniver.pem ubuntu@xx.xxx.xx.xxx

提交回复
热议问题