13 thoughts on “AWS Knowledge Center Videos: How do I recover access to my EC2 instances if I lost my SSH key pair?”

  1. Another easier solution – Create an AMI (Amazon Machine Image) of the broken instance. Launch a new instance from the AMI. When you launch the new instance, launch it with a different key pair (one that you have access to), or create a new key pair. How to create an AMI – https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/creating-an-ami-ebs.html
    What is an AMI – https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/AMIs.html

  2. Mount is not working with xfs filesystem.What shoud i do ? Error what i am seeing is "mount: wrong fs type, bad option, bad superblock on /dev/xvdf, missing codepage or helper program, or other error " .Please help.

  3. ERROR!

    [[email protected] ~]$ lsblk -f
    NAME FSTYPE LABEL UUID MOUNTPOINT
    xvda
    └─xvda1 xfs / 76e177a9-8195-43cf-84ae-14ea371008b6 /
    xvdf
    └─xvdf1 xfs / 76e177a9-8195-43cf-84ae-14ea371008b6
    [[email protected] ~]$ sudo mkdir /mnt/tempvol
    [[email protected] ~]$ sudo mount /dev/xvdf1 /mnt/tempvol/
    mount: /mnt/tempvol: wrong fs type, bad option, bad superblock on /dev/xvdf1, missing codepage or helper program, or other error.

    AMI ID: amzn2-ami-hvm-2.0.20180622.1-x86_64-gp2 (ami-b70554c8)

  4. It is very difficult to see the proper commands when they are at the very bottom of the screen. If the video is paused the commands are all covered.

Leave a Reply

Your email address will not be published. Required fields are marked *