Trying to SSH into an Amazon Ec2 instance - permission error

后端 未结 29 3445
一生所求
一生所求 2020-11-27 08:51

This is probably a stupidly simple question to some :)

I\'ve created a new linux instance on Amazon EC2, and as part of that downloaded the .pem file to allow me to

29条回答
  •  爱一瞬间的悲伤
    2020-11-27 09:27

    It is just a permission issue with your aws pem key.

    Just change the permission of pem key to 400 using below command.

    chmod 400 pemkeyname.pem
    

    If you don't have permission to change the permission of a file you can use sudo like below command.

    sudo chmod 400 pemkeyname.pem
    

    I hope this should work fine.

提交回复
热议问题