Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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.