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!
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin id nisl ac arcu aliquet aliquet. Praesent laoreet rhoncus elit, rutrum feugiat metus tempora.
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