Worried about your PEM files? Here we have listed out a set of strategies you need to follow to get connected with AWS Instance.
This process is applicable if you have lost your .pem or .ppk key.
Commands to list attached block devices:
# mount /dev/xvdf1 /mnt/
/mnt/home/ubuntu/.ssh/authorized_keys to /mnt/home/ubuntu/.ssh/authorized_keys_back
Using the command:
cp /mnt/home/ubuntu/.ssh/authorized_keys /mnt/home/ubuntu/.ssh/authorized_keys.bck
You can use the Command:
cat /home/ubuntu/.ssh/authorized_keys >>
/mnt/home/ubuntu/.ssh/authorized_keys
You can perform this with the Command:
# umount /mnt
Wrap Up
We hope now you would be relaxed! You can make use of this proven track strategy if you have lost your .ppm or ppk key.
If you have any other suggestions or queries, do register your comments in the comments section below!
Thanks for reading!
We’re here to help! Whether you need detailed information or just want to chat, our team is ready to guide you through everything Sumanas has to offer. Reach out, and let’s start a conversation.
Enquire Now
$ lsblk
xvda 202:0 0 8G 0 disk
└─xvda1 202:1 0 8G 0 part /
xvdf 202:80 0 8G 0 disk
└─xvdf1 202:81 0 8G 0 part