Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to use one AWS-EC2 instance by 3 (X) different users, without sharing the .pem file?

Update: Is it possible for 3 users to access 1 ec2 instance by their individual ID/password/.pem

share|improve this question

migrated from Jan 6 '11 at 15:10

This question came from our site for computer enthusiasts and power users.

this is question for webapps? – zengr Jan 6 '11 at 13:24
Serverfault, perhaps. not webapps. – Sathya Jan 6 '11 at 13:25

Create different user accounts in your instance, and you should be fine

share|improve this answer
but I will have to share the .pem file right? – zengr Jan 6 '11 at 12:49
Yes, unless you setup sshd to accept authentication using passwords - in which case you don't need separate user accounts either, (Note: password authentication is not a recommendation ) – Sathya Jan 6 '11 at 12:53
so, that was my question, is it possible for 3 users to access 1 ec2 instance by their individual ID/password/.pem – zengr Jan 6 '11 at 13:23
@zengr the ec2 instance is bound to a single amazon id, right ? – Sathya Jan 6 '11 at 13:25
yes sir, but say, you have a development team and 2 of your software engineers need to push some thing to the same server, how will they achieve that? sharing .pem is not the right way. – zengr Jan 6 '11 at 13:28
up vote 0 down vote accepted

I wrote my answer in detail here, comments welcome: Manage multiple accounts on 1 Amazon EC2 Instance

share|improve this answer
Can you at least try to post some of that on here please rather than just linking to your own site - if you've read our FAQ you'll know we're trying to develop a shared knowledge base for all here. – Chopper3 Jan 25 '11 at 18:04
well, my intention was not to publicize my blog. I first posted, the question, looked for an answer and then posted a blog post and then the answer here. AFAIK, posting a link rather than posting (copy-paste) a content directly from a website (duplication) is considered better. – zengr Jan 25 '11 at 18:08

As expected: amazon does not restrict your EC2(expected good behavior) from having different user accounts which you can use to login to the instance.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.