LinkedIn Amazon Web Services (AWS) Skill Assessment Quiz Answers

How do you connect via SSH to a Linux EC2 instance with an EBS volume if you lost your key pair?

Latest Update on 4th June, 2022 by Certification Course Answers

How do you connect via SSH to a Linux EC2 instance with an EBS volume if you lost your key pair?

  1.  Stop the instance and create an AMI image. Launch the image using a new key pair.
  2.  Contact AWS support. A support specialist can remotely restore access to your instance and send you a new key pair.
  3.  You can not connect to this EC2 instance. The key pair is displayed only one time. If you lose it, you have lost all access to this instance. Connect the EBS volume to another instance to recover your files.
  4.  Attach the EBS volume to a temporary instance launched with a new key pair, and overwrite ~/.ssh.authorized_keys using the same file from the new instance.

Correct Answer:

  •  Attach the EBS volume to a temporary instance launched with a new key pair, and overwrite ~/.ssh.authorized_keys using the same file from the new instance.

Latest Updates

No posts found in this category.