filmov
tv
Regain access to EC2 instance when PEM file lost
Показать описание
In this video we regain access to the ec2 instance when we have lost the pem file.
Commands -
sudo mkdir /mnt/tmp
sudo mount -o nouuid /dev/xvdf1 /mnt/tmp/
cp ~/.ssh/authorized_keys /mnt/tmp/home/ec2-user/.ssh/authorized_keys
umount /mnt/tmp
Commands -
sudo mkdir /mnt/tmp
sudo mount -o nouuid /dev/xvdf1 /mnt/tmp/
cp ~/.ssh/authorized_keys /mnt/tmp/home/ec2-user/.ssh/authorized_keys
umount /mnt/tmp