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

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

    I got here while solving same or similar problem. After trying a few things this works for me eventually. I am on MacBook Pro and trying to connect to Ec2 Amazon Linux 2 using VSCode Remote SSH.

    I have to update this file

    /Users/MrRobot/.ssh/config

    There is a config in the file like below.

    IdentityFile xx.pem

    I have to update this to full path wherever your id_rsa or pem file is.

    IdentityFile /Users/MrRobot/.ssh/xx.pem

提交回复
热议问题