Video will help us to understand how we can recover lost key-pair for EC2 instance in order to gain access to EC2 instance.
Below Pointers Covered :-
- Concept Overview
- Detail Demo
- Steps on system:-
Check File system
- lsblk -f
Create tempvolume for mounting
- sudo mkdir /mnt/tempvol
Mount tempvolume [below one is for xfs filesystem]
- sudo mount -t xfs -o nouuid /dev/xvdf1 /mnt/tempvol
Check Mounting
- lsblk -f
copy authorized_keys to mounted volume
- cp .ssh/authorized_keys /mnt/tempvol/home/ec2-user/.ssh/
Check the content on new volume
- ls -lah /mnt/tempvol/home/ec2-user/.ssh/
umount the secondary volume
- sudo umount /mnt/tempvol
If you like the video please like , comment , share and subscribe the channel to get more updates on technical videos.
Channel Link:- [ Ссылка ]
Join Me on linkedin Group for More updates:- [ Ссылка ]
Happy Learning !!!
![](https://s2.save4k.ru/pic/9x-r46OtmQ0/maxresdefault.jpg)