If you need to grant somebody access to an EC2 instance from a ssh client and you don't want to share the .pem key that was generated when you created the instance
You can do the following:
- Tell them to download Putty generator, Generate a new private and public key
- Tell them to send you the public key
- Edit the file /home/ec2-user/.ssh/authorized_keys on the EC2 instance and add the public key
- Tell them to configure putty and add the private key to use for that connection
When you configure the session in Putty, remember that you have to log in as ec2-user.
Note: Take into account that if your EC2 instance is shutdown, the DNS name gets generated again, so if you had a session saved with that name, you will have to change it to the new one
References:
No comments:
Post a Comment