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

Digital Marketing, LinkedIn Amazon Web Services (AWS) Skill Quiz Answers

You no longer need to be worried if you are taking the LinkedIn Amazon Web Services (AWS) Skill Quiz Exam and are unsure about the proper answer to the question “How do you connect via SSH to a Linux EC2 instance with an EBS volume if you lost your key pair?”. I have provided the right answer to your question below.

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

Options

  • Stop the instance and create an AMI image. Launch the image using a new key pair.
  • 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.
  • Contact AWS support. A support specialist can remotely restore access to your instance and send you a new key pair.
  • 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.

The Correct Answer Is:

  • 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.

Conclusion

I believe I was successful in answering your query “How do you connect via SSH to a Linux EC2 instance with an EBS volume if you lost your key pair?”. I hope you easily pass the certification exam and get the certificate as soon as possible. Have a great time! Good luck!