Hi Gents,
I’m currently facing an issue with Level 2 cloud AWS while configuring secure SSH access to an EC2 instance. Below, I’m sharing the steps I followed, but the outcome didn’t match the expected result.
Step 1 :
aws ec2 create-key-pair --key-name temp-keypair --query “KeyMaterial” --output text > temp-keypair.pem
Step 2:
chmod 400 /root/temp-keypair.pem
step 3:
find ~ -name temp-keypair.pem
Step 4:
ssh -i /root/temp-keypair.pem [email protected]
If anyone has experience with this setup or spots any mistakes, I’d appreciate your insights to help troubleshoot this.
Thanks in advance for any support!