How to limit people access to my EC2 with their pu

2019-06-02 11:38发布

Working on EC2 is a snap, you just download the .pem file, give it the right permissions, and you are ready to go, yet ... if you have the .pem file you have full access to the EC2 instance!!

What shall I do to limit people's access to the instance in a controllable way, e.g. people pass me their public key and add it to the instance a la Github

1条回答
Fickle 薄情
2楼-- · 2019-06-02 12:00

Follow the steps in this document: http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/managing-users.html

There are 3 steps:

  • You have to add a user account (adduser) for each user
  • Make sure the user-home/.ssh dir has 600 permission (chmod)
  • Add the user public key to user-home/.ssh/authorized_keys and make sure it has 700 permission (chmod)
查看更多
登录 后发表回答