Trying to SSH into an Amazon Ec2 instance - permission error

后端 未结 29 3436
一生所求
一生所求 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:19

    There can be three reasons behind this error.

    1. Your are using a wrong key.
    2. Your key doesn't have the correct permissions. You need to chmod it to 400.
    3. You are using the wrong user. Ubuntu images have a user ubuntu, Amazon's AMI is ec2-user and debian images have either root or admin

提交回复
热议问题