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

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

    Looks like you typed the wrong filename. You're specifying the filename skeniver.pem in your command, but it looks like your filename is actually skeniverkey.pem.

    0 讨论(0)
  • 2021-02-02 06:45

    Try using

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

    instead of

    ssh -i **/**Users/Skeniver/Keepass/skeniver.pem ubuntu@xx.xxx.xx.xxx
    
    0 讨论(0)
提交回复
热议问题