Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 it possible to associate multiple key pairs to the EC2 instance that I can give to other people for access?

share|improve this question
up vote 6 down vote accepted

Yes you can. You should however get the other people to generate their own key-pairs and then have them give you their public key.

You can then add their public key to the ~/.ssh/authorized_keys file for the relevant account.

The main reason to do it this way is that it saves you having to work out how to securely transfer the private key you generate (and it's pass phrase) to the person you want to use it. There is no problem with transferring public keys, they are after all public.

share|improve this answer
got it. thanks. how is this managed across multiple instances? do they need a keypair per instance? – john May 24 '11 at 21:40
No, they can use the same public key on multiple hosts. – Iain May 24 '11 at 21:44

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.