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

前端 未结 14 901
予麋鹿
予麋鹿 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条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-02 06:28

    I had the same problem and i found that the issue with the file path. Right click on the your key_pair.pem (identical file) go the properties and copy and now your comment is like

    ssh -i /path/skeniver.pem user@your_public_ip
    

    for example in my case command like

    ssh -i /home/anil/.ssh/webKey.pem ec2-user@ec2-45-349-50-38.us-west-2.compute.amazonaws.com
    

提交回复
热议问题