Hi I have recently started AWS course. In first lab I have completed all the activates, but am I unable download the key pair to test SSH. Is there any alternat way to SSH EC2 let me know.
First of all, a link to a lab would be very helpful here. I assume you’re creating an EC2 instance and want to ssh into it. It’s not hard to do: you need to add a public ssh key that’s set up for your laptop (I assume that’s what you want to ssh from), add it to the lab’s My Credentials, and link the key to the EC2 instance. But it will be easier for me to explain this in the context of a particular lab.
Let us assume you created a key pair from the AWS console.
As soon as you complete the workflow for creating the key pair, the PEM file for the private key is automatically downloaded. Check your downloads folder for it.
Once the key is created, there is no way to download the PEM file again (for security reasons).
@Alistair_KodeKloud I am taking about lab, where I am not suppose to create a key pair. In that case what I am suppose to do to access the instance.
When you create an EC2 instance in the AWS console, there’s an option to create a key pair. This you should do; the .pem file would be used in ssh -i path-to-pem user@public-ip