Hi,
unable to ssh since i cannot download keypair as ec2-user already exists.
ssh -i “ec2-user.pem” ec2-user@
Which lab or playground is this for? A link is very helpful here.
Lab is mentioned as subject line - AWS solution architect
Thanks for the link – there are multiple AWS courses
I think part of the issue here is that the interface of the labs is a little confusing. The AWS labs have two parallel sides: the AWS console, which you start up using the credentials supplied in the other side, the KodeKloud side.
- To start the lab, you using the console link to start the console.
- When you do this, a terminal is initialized on the KK side. Confusingly, it’s collapsed; you need to click on the
⤢ symbol on the upper right end of the screen which will cause the terminal to appear.
If you check the terminal you’ll see that the key file is in the /root directory:
~ on ☁️ (us-east-1) ➜ ls -l
total 8
-rw-r--r-- 1 root root 604 May 15 04:30 create-sg.sh
-r-------- 1 root root 1675 Aug 7 03:51 ec2-user.pem
I’m pretty sure this is the key you want.