Trying to SSH into an Amazon Ec2 instance - permission error

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

    BY default permission are not allowing the pem key. You just have to change the permission:

    chmod 400 xyz.pem

    and if ubuntu instance then connect using:

    ssh -i xyz.pem ubuntu@ec2-youraws.amazonaws.com

提交回复
热议问题