For new user how to create and share private key ? [Managing User Accounts.

0

I'm new to AWS and referring to https://docs.aws.amazon.com/en_pv/AWSEC2/latest/UserGuide/managing-users.html ( Managing User Accounts on Your Linux Instance )
In this page they mention

"..The user should now be able to log into the newuser account on your instance using the private key that corresponds to the public key that you added to the authorized_keys file..."

who will create private key for new users and how to share with them ?

Thanks & Regards,
Vikram

asked 5 years ago206 views
1 Answer
0

Hi Vikram

Consider asking the user to create the private key herself and send the public key to you, rather than creating private keys for your user. That way you avoid the problem of having to protect the private key in transit (part of the key distribution problem https://en.wikipedia.org/wiki/Key_distribution).

How to here:
https://docs.aws.amazon.com/en_pv/AWSEC2/latest/UserGuide/ec2-key-pairs.html#how-to-generate-your-own-key-and-import-it-to-aws
Best
Andreas

Faffen
answered 5 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions